コード例 #1
0
ファイル: TextPrompt.cs プロジェクト: hex6/WorldSmith
 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
ファイル: TextPrompt.cs プロジェクト: hex6/WorldSmith
 private void okButton_Click(object sender, EventArgs e)
 {
     this.result.result = true;
     this.Close();
 }
コード例 #3
0
ファイル: TextPrompt.cs プロジェクト: hex6/WorldSmith
 private void button1_Click(object sender, EventArgs e)
 {
     this.result.result = false;
     textBox1.Text = "";
     this.Close();
 }