2 using System.Collections.Generic;
\r
4 using System.Windows.Forms;
\r
5 using System.ComponentModel;
\r
7 namespace DTXCreator.譜面
\r
9 public partial class C数値入力ダイアログ : Form
\r
15 return this.numericUpDown数値.Value;
\r
21 this.InitializeComponent();
\r
23 public C数値入力ダイアログ( decimal dc開始値, decimal dc最小値, decimal dc最大値, string strメッセージ )
\r
25 this.InitializeComponent();
\r
26 this.labelメッセージ.Text = strメッセージ;
\r
27 this.numericUpDown数値.Value = dc開始値;
\r
28 this.numericUpDown数値.Minimum = dc最小値;
\r
29 this.numericUpDown数値.Maximum = dc最大値;
\r
32 private void numericUpDown数値_KeyDown( object sender, KeyEventArgs e )
\r
34 if( e.KeyCode == Keys.Return )
\r
36 this.buttonOK.PerformClick();
\r
38 else if( e.KeyCode == Keys.Escape )
\r
40 this.buttonキャンセル.PerformClick();
\r