Пример #1
0
 private void CommandLinkSelected(object sender, EventArgs e)
 {
     DialogResult = DialogResult.OK;
     if (sender != null && sender is CommandLink)
     {
         mSelectedCommandLink = (CommandLink)sender;
     }
     Close();
 }
Пример #2
0
 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;
 }