ACAT.Lib.Extension.CommandHandlers.ExitAppHandler.Execute C# (CSharp) Method

Execute() public method

Executes the command
public Execute ( bool &handled ) : bool
handled bool set to true if the command was handled
return bool
        public override bool Execute(ref bool handled)
        {
            handled = true;

            switch (Command)
            {
                case "CmdExitAppWithConfirm":
                    if (DialogUtils.ConfirmScanner(null, ACATExtension.Resources.QuitApplication))
                    {
                        quitApplication();
                    }
                    break;

                case "CmdExitApp":
                    quitApplication();
                    break;
            }
            return true;
        }