Exemple #1
0
 private void OKButton_Click(object sender, EventArgs e) {
     var text = isCombo ? InputComboBox.Text : InputTextBox.Text;
     var ee = new OKButtonClickedEventArgs(text);
     OKButtonClicked(this, ee);
     if(!ee.Cancel) {
         InputedText = text;
         DialogResult = System.Windows.Forms.DialogResult.OK;
     }
 }
Exemple #2
0
        private void OKButton_Click(object sender, EventArgs e)
        {
            var text = isCombo ? InputComboBox.Text : InputTextBox.Text;
            var ee   = new OKButtonClickedEventArgs(text);

            OKButtonClicked(this, ee);
            if (!ee.Cancel)
            {
                InputedText  = text;
                DialogResult = System.Windows.Forms.DialogResult.OK;
            }
        }