ACAT.Extensions.Default.UI.Menus.MainMenu.CommandHandler.Execute C# (CSharp) Method

Execute() public method

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

                var form = Dispatcher.Scanner.Form as MainMenu;

                switch (Command)
                {
                    case "Exit":
                        form.confirmAndQuitApplication();
                        break;

                    default:
                        handled = false;
                        break;
                }

                return true;
            }
        }
MainMenu.CommandHandler