Neuerstellung
This commit is contained in:
29
FSI.BT.Tools/Commands/LoginCommand.cs
Normal file
29
FSI.BT.Tools/Commands/LoginCommand.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace FSI.BT.Tools.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Shows the main window.
|
||||
/// </summary>
|
||||
public class LoginCommand : CommandBase<LoginCommand>
|
||||
{
|
||||
public override void Execute(object parameter)
|
||||
{
|
||||
Lib.Guis.AutoPw.FrmMain frmMain = new()
|
||||
{
|
||||
CloseAtLostFocus = true,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner,
|
||||
};
|
||||
frmMain.ShowDialog();
|
||||
|
||||
Global.UserRights =
|
||||
Global.AdminRights = frmMain.PwOk;
|
||||
}
|
||||
|
||||
|
||||
public override bool CanExecute(object parameter)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user