summaryrefslogtreecommitdiff
path: root/Aktywator/MainForm.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-22 21:43:08 +0200
committeremkael <emkael@tlen.pl>2017-08-22 21:45:18 +0200
commitcda00c4a001a736524812fa9a62844a2da715651 (patch)
treef20d11e536ae2554c736482b9f47feacbdd4deb3 /Aktywator/MainForm.cs
parent1bb11519992d69339943cb20b50fcb7a84769fa7 (diff)
Automatic version number and build date loading
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r--Aktywator/MainForm.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 25268b6..5b3539e 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -7,13 +7,14 @@ using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using Microsoft.Win32;
+using System.Reflection;
namespace Aktywator
{
public partial class MainForm : Form
{
- public string version = "1.1.0-beta";
- public string date = "30.07.2017";
+ public string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
+ public string date = Properties.Resources.BuildDate.Trim();
private Bws bws;
private List<Setting> bwsSettings;