Base class for classes that provide information for a command that needs to be run after the user optionally edits user settings for the command.
See RunCommandEventArgs for information about how NodeXL sends commands from one UI object to another.
Inheritance: RunCommandEventArgs
Esempio n. 1
0
        RunEditableCommand
        (
            RunEditableCommandEventArgs oRunEditableCommandEventArgs,
            ThisWorkbook oThisWorkbook
        )
        {
            Debug.Assert(oRunEditableCommandEventArgs != null);
            Debug.Assert(oThisWorkbook != null);

            // Arbitrarily use the workbook as the sender here.  TaskAutomator
            // can't be used, because it's static.

            CommandDispatcher.SendCommand(oThisWorkbook,
                                          oRunEditableCommandEventArgs);

            return(oRunEditableCommandEventArgs.CommandSuccessfullyRun);
        }
    RunEditableCommand
    (
        RunEditableCommandEventArgs oRunEditableCommandEventArgs,
        ThisWorkbook oThisWorkbook
    )
    {
        Debug.Assert(oRunEditableCommandEventArgs != null);
        Debug.Assert(oThisWorkbook != null);

        // Arbitrarily use the workbook as the sender here.  TaskAutomator
        // can't be used, because it's static.

        CommandDispatcher.SendCommand(oThisWorkbook,
            oRunEditableCommandEventArgs);

        return (oRunEditableCommandEventArgs.CommandSuccessfullyRun);
    }