Пример #1
0
 public new TextPromptResult ShowDialog()
 {
     result = new TextPromptResult();
     this.StartPosition = FormStartPosition.CenterParent;
     this.Focus();
     textBox1.Focus();
     base.ShowDialog();
     result.text = textBox1.Text;
     return result;
 }
Пример #2
0
 private void okButton_Click(object sender, EventArgs e)
 {
     this.result.result = true;
     this.Close();
 }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.result.result = false;
     textBox1.Text = "";
     this.Close();
 }