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();
}