Adding version number to the settings dialog

This commit is contained in:
2019-08-25 15:09:08 +01:00
parent 3eddc52c6a
commit 5a0b3bba25
5 changed files with 98 additions and 4 deletions
+5 -2
View File
@@ -1,8 +1,7 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace ASCOM.Meade.net
@@ -13,6 +12,10 @@ namespace ASCOM.Meade.net
public SetupDialogForm()
{
InitializeComponent();
var assemblyInfo = new AssemblyInfo();
Text = $"{assemblyInfo.Product} Settings ({assemblyInfo.AssemblyVersion})";
}
private void cmdCancel_Click(object sender, EventArgs e) // Cancel button event handler