ACAT.Extensions.Default.FunctionalAgents.NewFile.NewFileAgent.OnRunCommand C# (CSharp) Méthode

OnRunCommand() public méthode

Invoked when there is a request to run a command. This could as a result of the user activating a button on the scanner and there is a command associated with the button
public OnRunCommand ( String command, object commandArg, bool &handled ) : void
command String command to run
commandArg object any optional arguments
handled bool was this handled?
Résultat void
        public override void OnRunCommand(String command, object commandArg, ref bool handled)
        {
            handled = true;

            switch (command)
            {
                case "clearText":
                    if (_newFileNameForm != null && confirm(Resources.ClearFileName))
                    {
                        _newFileNameForm.ClearFileName();
                    }

                    break;

                default:
                    base.OnRunCommand(command, commandArg, ref handled);
                    break;
            }
        }