Fix build version & scada

This commit is contained in:
Lucio Maranta
2019-05-27 17:15:44 +02:00
parent bc090e1ceb
commit 708f958b0f
6 changed files with 41 additions and 36 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
@@ -57,8 +58,9 @@ namespace Step.UI
if (v != null)
{
DateTime buildDate = new DateTime(2000, 1, 1).AddDays(v.Build).AddSeconds(v.Revision * 2);
var tmp = v.ToString().Split('.').Take(2).ToArray();
this.Text = "Active Control Window";
TXTVersion.Text = "V" + v + " (" + buildDate.ToString("d") + ")";
TXTVersion.Text = "V" + String.Join(".", tmp) + " (" + buildDate.ToString("d") + ")";
}
PswForm = new PasswordForm();