Fix build version & scada
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user