Skip to content

Commit

Permalink
Some minor changes.
Browse files Browse the repository at this point in the history
- Updated  .gitignore.
- Removed unused code.
- Added precompiled binaries.
- Added Tooltips for menu buttons.
- Minor code improvements.
- Build settings changed to  ANY CPU
  • Loading branch information
yuriqdev committed Jun 6, 2018
1 parent d22a0aa commit bc68e9c
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 100 deletions.
89 changes: 21 additions & 68 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
### Csharp ###
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

!*.exe
!*.dll

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

Expand All @@ -18,12 +18,14 @@
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Xx]64/
[Xx]86/
[Bb]uild/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/



# Visual Studio 2015 cache/options directory
.vs/
Expand All @@ -43,11 +45,9 @@ TestResult.xml
[Rr]eleasePS/
dlldata.c

# .NET Core
# DNX
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json

*_i.c
*_p.c
Expand Down Expand Up @@ -86,7 +86,6 @@ ipch/
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
Expand Down Expand Up @@ -114,10 +113,6 @@ _TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover

# Visual Studio code coverage results
*.coverage
*.coveragexml

# NCrunch
_NCrunch_*
.*crunch*.local.xml
Expand Down Expand Up @@ -149,18 +144,13 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Uncomment the next line to ignore your web deploy settings.
# By default, sensitive information, such as encrypted password
# should be stored in the .pubxml.user file.

# TODO: Un-comment the next line if you do not want to checkin
# your web deploy settings because they may include unencrypted
# passwords
#*.pubxml
*.pubxml.user
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
Expand All @@ -169,7 +159,7 @@ PublishScripts/
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignorable files
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

Expand All @@ -181,11 +171,9 @@ csx/
ecf/
rcf/

# Windows Store app package directories and files
# Windows Store app package directory
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt

# Visual Studio cache files
# files ending in .cache can be ignored
Expand All @@ -195,19 +183,16 @@ _pkginfo.txt

# Others
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/

# RIA/Silverlight projects
Generated_Code/

Expand All @@ -222,7 +207,6 @@ UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
*.ndf

# Business Intelligence projects
*.rdl.data
Expand All @@ -237,20 +221,13 @@ FakesAssemblies/

# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/

# Typescript v1 declaration files
typings/

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
Expand All @@ -259,36 +236,12 @@ typings/
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# LightSwitch generated files
GeneratedArtifacts/
ModelManifest.xml

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc

# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config

# Telerik's JustMock configuration file
*.jmconfig

# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs


# End of
9 changes: 9 additions & 0 deletions WinCCFlexArchViewer/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions WinCCFlexArchViewer/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private void parse_data(object sender, DoWorkEventArgs e)
}
} //EndOfForeach

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

//
Expand Down Expand Up @@ -441,6 +441,7 @@ private void toolMnuItemChSta(object sender, EventArgs e)
{
((ToolStripMenuItem)sender).Checked = DTrend.GraphPane.CurveList[((ToolStripMenuItem)sender).OwnerItem.Text].IsVisible;
}

// Event handler for Dropdown MenuItem "show/hide ALL Curves"
private void toggleAllCurves(object sender, EventArgs e)
{
Expand Down
6 changes: 3 additions & 3 deletions WinCCFlexArchViewer/NumTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected override void WndProc(ref Message m)
{
Text = value.ToString();
}
else MessageBox.Show("Error paste");
else MessageBox.Show("Only Number Allowed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}

Expand All @@ -44,13 +44,13 @@ private double DblParse()
double d = 0.0;
if (Text == String.Empty)
{
MessageBox.Show("Empty Value Not Allowed");
MessageBox.Show("Empty Value Not Allowed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
ok = false;
}
else
{
ok = double.TryParse(this.Text, out d);
if (ok == false) MessageBox.Show("Only Number Allowed");
if (ok == false) MessageBox.Show("Only Number Allowed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
return d;
}
Expand Down
3 changes: 2 additions & 1 deletion WinCCFlexArchViewer/WinCCFlexLogViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
Loading

0 comments on commit bc68e9c

Please sign in to comment.