private void CommandLinkSelected(object sender, EventArgs e) { DialogResult = DialogResult.OK; if (sender != null && sender is CommandLink) { mSelectedCommandLink = (CommandLink)sender; } Close(); }
public CommandDialog() { // This call is required by the Windows Form Designer. InitializeComponent(); mCommandLinks = new List <CommandLink>(); mSelectedCommandLink = null; DialogResult = DialogResult.Cancel; mShowCancelButton = true; CancelButton = btnCancel; }