X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=DTXCreator%2F%E3%82%B3%E3%83%BC%E3%83%89%2F05.%E8%AD%9C%E9%9D%A2%2FC%E6%95%B0%E5%80%A4%E5%85%A5%E5%8A%9B%E3%83%80%E3%82%A4%E3%82%A2%E3%83%AD%E3%82%B0.cs;fp=DTXCreator%2F%E3%82%B3%E3%83%BC%E3%83%89%2F05.%E8%AD%9C%E9%9D%A2%2FC%E6%95%B0%E5%80%A4%E5%85%A5%E5%8A%9B%E3%83%80%E3%82%A4%E3%82%A2%E3%83%AD%E3%82%B0.cs;h=5df55837d88babf505ffc58de2fe9a9db1f55878;hb=4b70e63bc3e2c99e836477240bd5039d41d10640;hp=0000000000000000000000000000000000000000;hpb=296446998eeba408353da55a275458b590e4ebf5;p=dtxmania%2Fdtxmania.git diff --git a/DTXCreator/コード/05.譜面/C数値入力ダイアログ.cs b/DTXCreator/コード/05.譜面/C数値入力ダイアログ.cs new file mode 100644 index 00000000..5df55837 --- /dev/null +++ b/DTXCreator/コード/05.譜面/C数値入力ダイアログ.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Windows.Forms; +using System.ComponentModel; + +namespace DTXCreator.譜面 +{ + public partial class C数値入力ダイアログ : Form + { + public decimal dc数値 + { + get + { + return this.numericUpDown数値.Value; + } + } + + public C数値入力ダイアログ() + { + this.InitializeComponent(); + } + public C数値入力ダイアログ( decimal dc開始値, decimal dc最小値, decimal dc最大値, string strメッセージ ) + { + this.InitializeComponent(); + this.labelメッセージ.Text = strメッセージ; + this.numericUpDown数値.Value = dc開始値; + this.numericUpDown数値.Minimum = dc最小値; + this.numericUpDown数値.Maximum = dc最大値; + } + + private void numericUpDown数値_KeyDown( object sender, KeyEventArgs e ) + { + if( e.KeyCode == Keys.Return ) + { + this.buttonOK.PerformClick(); + } + else if( e.KeyCode == Keys.Escape ) + { + this.buttonキャンセル.PerformClick(); + } + } + } +}