fixed comparer enable buttons (ich depp)

This commit is contained in:
Daniel Schick 2023-03-11 10:48:05 +01:00
parent e10ea34f1b
commit ec179966f3
2 changed files with 4 additions and 1 deletions

View File

@ -221,6 +221,7 @@ namespace ENI2.EditControls
if (ofd.ShowDialog() ?? false) if (ofd.ShowDialog() ?? false)
{ {
textBoxSource.Text = ofd.FileName; textBoxSource.Text = ofd.FileName;
_sourcePath = ofd.FileName;
} }
EnableCompareButton(); EnableCompareButton();
} }
@ -234,6 +235,7 @@ namespace ENI2.EditControls
if (ofd.ShowDialog() ?? false) if (ofd.ShowDialog() ?? false)
{ {
textBoxTarget.Text = ofd.FileName; textBoxTarget.Text = ofd.FileName;
_targetPath = ofd.FileName;
} }
EnableCompareButton(); EnableCompareButton();
} }

View File

@ -333,8 +333,9 @@ namespace ENI2
this.dbConnected = DBManager.Instance.Connect(Properties.Settings.Default.ConnectionString); this.dbConnected = DBManager.Instance.Connect(Properties.Settings.Default.ConnectionString);
labelGeneralStatus.Text = dbConnected ? "DB Connected" : "DB Connect failed"; labelGeneralStatus.Text = dbConnected ? "DB Connected" : "DB Connect failed";
labelVersion.Text = "V. " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; labelVersion.Text = "V. " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
labelUsername.Text = System.Security.Principal.WindowsIdentity.GetCurrent().Name; labelUsername.Text = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
Microsoft.Win32.SystemEvents.SessionEnded += SystemEvents_SessionEnded; Microsoft.Win32.SystemEvents.SessionEnded += SystemEvents_SessionEnded;
this.textUsername.Focus();
} }
private void SystemEvents_SessionEnded(object sender, Microsoft.Win32.SessionEndedEventArgs e) private void SystemEvents_SessionEnded(object sender, Microsoft.Win32.SessionEndedEventArgs e)