ComponentFactory.Krypton.Toolkit.VisualTaskDialog.OnCommandClicked C# (CSharp) Method

OnCommandClicked() private method

private OnCommandClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void OnCommandClicked(object sender, EventArgs e)
        {
            Close();

            // Update the result code from the command button
            KryptonButton button = (KryptonButton)sender;
            DialogResult = button.DialogResult;

            // Invoke any event handlers from the command button
            KryptonTaskDialogCommand command = (KryptonTaskDialogCommand)button.Tag;
            command.PerformExecute();
        }