Skip to content

Commit 7222235

Browse files
author
Stevan M
committed
Changed version
1 parent 44271f7 commit 7222235

File tree

3 files changed

+35
-16
lines changed

3 files changed

+35
-16
lines changed

FormMain.Designer.cs

Lines changed: 28 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FormMain.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ static public void HandleUnhandledException(Exception e)
7474
public FormMain()
7575
{
7676
InitializeComponent();
77+
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
78+
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
79+
labelVersion.Text = fvi.FileVersion;
80+
7781
timerRead.Interval = SAMPLE_RATE;
7882
button1.Select();
7983
iconGithub.BackgroundImage = IconChar.Github.ToBitmap(32, Color.White);
@@ -322,6 +326,7 @@ private void backgroundWorkerUpdate_RunWorkerCompleted(object sender, System.Com
322326
{
323327
if (e.Result != null)
324328
{
329+
labelVersion.Visible = false;
325330
linkLabelUpdate.Visible = true;
326331
updateUri = (e.Result as Release).HtmlUrl;
327332
}

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.1.0.0")]
36-
[assembly: AssemblyFileVersion("0.1.0.0")]
35+
[assembly: AssemblyVersion("0.2.0")]
36+
[assembly: AssemblyFileVersion("0.2.0")]

0 commit comments

Comments
 (0)