summaryrefslogtreecommitdiff
path: root/Aktywator/MainForm.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 01:05:12 +0200
committeremkael <emkael@tlen.pl>2017-08-23 01:05:12 +0200
commit2f1228ad001a122fde8d6608a6dfa02367c8ac1c (patch)
treef54ffdf59c46bd8940795211f292d986ccf21b93 /Aktywator/MainForm.cs
parent3dad720214a8dbdfaec1c32dc6e15e33708aaf95 (diff)
parente22168fba7677b945e9157c4ea5c6812db6ca262 (diff)
Merge branch 'settings-redesign' into 1.1-beta
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r--Aktywator/MainForm.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 24322cb..57794cf 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;
@@ -483,5 +484,14 @@ namespace Aktywator
}
}
+ private void updateSession_Click(object sender, EventArgs e)
+ {
+ if (trySave())
+ {
+ bws.updateSettings();
+ MessageBox.Show("Wykonano!", "Settings update", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ }
+
}
}