|
@@ -1658,7 +1658,10 @@ public partial class MainWindow : IPanelHostControl
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- MessageWindow.ShowMessage("You must clock on before logging in to PRS!", "Not clocked in.");
|
|
|
+ Dispatcher.Invoke(() =>
|
|
|
+ {
|
|
|
+ MessageWindow.ShowMessage("You must clock on before logging in to PRS!", "Not clocked in.");
|
|
|
+ });
|
|
|
ClientFactory.InvalidateUser();
|
|
|
App.EmployeeID = Guid.Empty;
|
|
|
App.EmployeeName = "";
|
|
@@ -1861,8 +1864,6 @@ public partial class MainWindow : IPanelHostControl
|
|
|
{
|
|
|
if (!isClockedOn)
|
|
|
{
|
|
|
- if (message)
|
|
|
- MessageBox.Show("You must clock on before opening this screen");
|
|
|
return false;
|
|
|
}
|
|
|
|