Explorar el Código

Build number has been removed from the main window title

Tal Aloni hace 8 años
padre
commit
cbaaa2afa8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      ISCSIConsole/MainForm.cs

+ 2 - 1
ISCSIConsole/MainForm.cs

@@ -33,7 +33,8 @@ namespace ISCSIConsole
 
         private void MainForm_Load(object sender, EventArgs e)
         {
-            this.Text += " v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
+            Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
+            this.Text += " v" + version.ToString(3);
             m_server.OnLogEntry += Program.OnLogEntry;
 
             List<IPAddress> localIPs = GetHostIPAddresses();