Skip to content

Commit

Permalink
Changed version
Browse files Browse the repository at this point in the history
  • Loading branch information
scelts committed Oct 9, 2020
1 parent 44271f7 commit 7222235
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 16 deletions.
42 changes: 28 additions & 14 deletions FormMain.Designer.cs

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

5 changes: 5 additions & 0 deletions FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ static public void HandleUnhandledException(Exception e)
public FormMain()
{
InitializeComponent();
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
labelVersion.Text = fvi.FileVersion;

timerRead.Interval = SAMPLE_RATE;
button1.Select();
iconGithub.BackgroundImage = IconChar.Github.ToBitmap(32, Color.White);
Expand Down Expand Up @@ -322,6 +326,7 @@ private void backgroundWorkerUpdate_RunWorkerCompleted(object sender, System.Com
{
if (e.Result != null)
{
labelVersion.Visible = false;
linkLabelUpdate.Visible = true;
updateUri = (e.Result as Release).HtmlUrl;
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyVersion("0.2.0")]
[assembly: AssemblyFileVersion("0.2.0")]

0 comments on commit 7222235

Please sign in to comment.