Files
FSI.BT.IR.Tools/FSI.BT.Tools/Commands/LoginCommand.cs
2022-03-23 14:16:48 +01:00

28 lines
727 B
C#

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 Lib.Guis.AutoPw.FrmMain()
{
CloseAtLostFocus = false,
WindowStartupLocation = WindowStartupLocation.CenterOwner,
};
frmMain.ShowDialog();
Global.UserRights =
Global.AdminRights = frmMain.PwOk;
}
public override bool CanExecute(object parameter)
{
return true;
}
}
}