Skip to content

Commit d22a0aa

Browse files
committed
Revert "Minor code improvements."
This reverts commit 8cc49ea.
1 parent 8cc49ea commit d22a0aa

File tree

5 files changed

+74
-29
lines changed

5 files changed

+74
-29
lines changed

.gitignore

+68-21
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
### Csharp ###
12
## Ignore Visual Studio temporary files, build results, and
23
## files generated by popular Visual Studio add-ons.
4+
##
5+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
36

47
# User-specific files
58
*.suo
69
*.user
710
*.userosscache
811
*.sln.docstates
912

10-
!*.exe
11-
!*.dll
12-
1313
# User-specific files (MonoDevelop/Xamarin Studio)
1414
*.userprefs
1515

@@ -18,14 +18,12 @@
1818
[Dd]ebugPublic/
1919
[Rr]elease/
2020
[Rr]eleases/
21-
[Xx]64/
22-
[Xx]86/
23-
[Bb]uild/
21+
x64/
22+
x86/
2423
bld/
2524
[Bb]in/
2625
[Oo]bj/
27-
28-
26+
[Ll]og/
2927

3028
# Visual Studio 2015 cache/options directory
3129
.vs/
@@ -45,9 +43,11 @@ TestResult.xml
4543
[Rr]eleasePS/
4644
dlldata.c
4745

48-
# DNX
46+
# .NET Core
4947
project.lock.json
48+
project.fragment.lock.json
5049
artifacts/
50+
**/Properties/launchSettings.json
5151

5252
*_i.c
5353
*_p.c
@@ -86,6 +86,7 @@ ipch/
8686
*.sdf
8787
*.cachefile
8888
*.VC.db
89+
*.VC.VC.opendb
8990

9091
# Visual Studio profiler
9192
*.psess
@@ -113,6 +114,10 @@ _TeamCity*
113114
# DotCover is a Code Coverage Tool
114115
*.dotCover
115116

117+
# Visual Studio code coverage results
118+
*.coverage
119+
*.coveragexml
120+
116121
# NCrunch
117122
_NCrunch_*
118123
.*crunch*.local.xml
@@ -144,13 +149,18 @@ publish/
144149
# Publish Web Output
145150
*.[Pp]ublish.xml
146151
*.azurePubxml
147-
148-
# TODO: Un-comment the next line if you do not want to checkin
149-
# your web deploy settings because they may include unencrypted
150-
# passwords
152+
# TODO: Uncomment the next line to ignore your web deploy settings.
153+
# By default, sensitive information, such as encrypted password
154+
# should be stored in the .pubxml.user file.
151155
#*.pubxml
156+
*.pubxml.user
152157
*.publishproj
153158

159+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
160+
# checkin your Azure Web App publish settings, but sensitive information contained
161+
# in these scripts will be unencrypted
162+
PublishScripts/
163+
154164
# NuGet Packages
155165
*.nupkg
156166
# The packages folder can be ignored because of Package Restore
@@ -159,7 +169,7 @@ publish/
159169
!**/packages/build/
160170
# Uncomment if necessary however generally it will be regenerated when needed
161171
#!**/packages/repositories.config
162-
# NuGet v3's project.json files produces more ignoreable files
172+
# NuGet v3's project.json files produces more ignorable files
163173
*.nuget.props
164174
*.nuget.targets
165175

@@ -171,9 +181,11 @@ csx/
171181
ecf/
172182
rcf/
173183

174-
# Windows Store app package directory
184+
# Windows Store app package directories and files
175185
AppPackages/
176186
BundleArtifacts/
187+
Package.StoreAssociation.xml
188+
_pkginfo.txt
177189

178190
# Visual Studio cache files
179191
# files ending in .cache can be ignored
@@ -183,16 +195,19 @@ BundleArtifacts/
183195

184196
# Others
185197
ClientBin/
186-
[Ss]tyle[Cc]op.*
187198
~$*
188199
*~
189200
*.dbmdl
190201
*.dbproj.schemaview
202+
*.jfm
191203
*.pfx
192204
*.publishsettings
193-
node_modules/
194205
orleans.codegen.cs
195206

207+
# Since there are multiple workflows, uncomment next line to ignore bower_components
208+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
209+
#bower_components/
210+
196211
# RIA/Silverlight projects
197212
Generated_Code/
198213

@@ -207,6 +222,7 @@ UpgradeLog*.htm
207222
# SQL Server files
208223
*.mdf
209224
*.ldf
225+
*.ndf
210226

211227
# Business Intelligence projects
212228
*.rdl.data
@@ -221,13 +237,20 @@ FakesAssemblies/
221237

222238
# Node.js Tools for Visual Studio
223239
.ntvs_analysis.dat
240+
node_modules/
241+
242+
# Typescript v1 declaration files
243+
typings/
224244

225245
# Visual Studio 6 build log
226246
*.plg
227247

228248
# Visual Studio 6 workspace options file
229249
*.opt
230250

251+
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
252+
*.vbw
253+
231254
# Visual Studio LightSwitch build output
232255
**/*.HTMLClient/GeneratedArtifacts
233256
**/*.DesktopClient/GeneratedArtifacts
@@ -236,12 +259,36 @@ FakesAssemblies/
236259
**/*.Server/ModelManifest.xml
237260
_Pvt_Extensions
238261

239-
# LightSwitch generated files
240-
GeneratedArtifacts/
241-
ModelManifest.xml
242-
243262
# Paket dependency manager
244263
.paket/paket.exe
264+
paket-files/
245265

246266
# FAKE - F# Make
247267
.fake/
268+
269+
# JetBrains Rider
270+
.idea/
271+
*.sln.iml
272+
273+
# CodeRush
274+
.cr/
275+
276+
# Python Tools for Visual Studio (PTVS)
277+
__pycache__/
278+
*.pyc
279+
280+
# Cake - Uncomment if you are using it
281+
# tools/**
282+
# !tools/packages.config
283+
284+
# Telerik's JustMock configuration file
285+
*.jmconfig
286+
287+
# BizTalk build output
288+
*.btp.cs
289+
*.btm.cs
290+
*.odx.cs
291+
*.xsd.cs
292+
293+
294+
# End of

WinCCFlexArchViewer/Main.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private void parse_data(object sender, DoWorkEventArgs e)
258258
}
259259
} //EndOfForeach
260260

261-
datapointCounter = timeList.Count; // получим число записей сразу, без цикла
261+
datapointCounter = timeList.Count; //немного оптимизации, получим число записей сразу, без цикла
262262
table = new DataTable();
263263
DataColumn dataColumn = new DataColumn();
264264
dataColumn.DataType = Type.GetType("System.String");
@@ -320,7 +320,7 @@ private void parse_data(object sender, DoWorkEventArgs e)
320320
}
321321
}
322322
} //EndOfForeach
323-
goodRecCounter = table.Rows.Count; // получим число записей сразу, без цикла
323+
goodRecCounter = table.Rows.Count; //немного оптимизации, получим число записей сразу, без цикла
324324
}
325325

326326
//
@@ -441,7 +441,6 @@ private void toolMnuItemChSta(object sender, EventArgs e)
441441
{
442442
((ToolStripMenuItem)sender).Checked = DTrend.GraphPane.CurveList[((ToolStripMenuItem)sender).OwnerItem.Text].IsVisible;
443443
}
444-
445444
// Event handler for Dropdown MenuItem "show/hide ALL Curves"
446445
private void toggleAllCurves(object sender, EventArgs e)
447446
{

WinCCFlexArchViewer/NumTextBox.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected override void WndProc(ref Message m)
3535
{
3636
Text = value.ToString();
3737
}
38-
else MessageBox.Show("Only Number Allowed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
38+
else MessageBox.Show("Error paste");
3939
}
4040
}
4141

@@ -44,13 +44,13 @@ private double DblParse()
4444
double d = 0.0;
4545
if (Text == String.Empty)
4646
{
47-
MessageBox.Show("Empty Value Not Allowed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
47+
MessageBox.Show("Empty Value Not Allowed");
4848
ok = false;
4949
}
5050
else
5151
{
5252
ok = double.TryParse(this.Text, out d);
53-
if (ok == false) MessageBox.Show("Only Number Allowed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
53+
if (ok == false) MessageBox.Show("Only Number Allowed");
5454
}
5555
return d;
5656
}

WinCCFlexArchViewer/WinCCFlexLogViewer.csproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@
4545
<UseVSHostingProcess>false</UseVSHostingProcess>
4646
</PropertyGroup>
4747
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
48-
<PlatformTarget>AnyCPU</PlatformTarget>
48+
<PlatformTarget>x86</PlatformTarget>
4949
<DebugType>pdbonly</DebugType>
5050
<Optimize>true</Optimize>
5151
<OutputPath>bin\Release\</OutputPath>
5252
<DefineConstants>TRACE</DefineConstants>
5353
<ErrorReport>prompt</ErrorReport>
5454
<WarningLevel>4</WarningLevel>
55-
<UseVSHostingProcess>false</UseVSHostingProcess>
5655
</PropertyGroup>
5756
<ItemGroup>
5857
<Reference Include="System" />
Binary file not shown.

0 commit comments

Comments
 (0)