using System.Windows; namespace FSI.BT.Tools.Commands { /// /// Shows the main window. /// public class LoginCommand : CommandBase { 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; } } }