예제 #1
0
        public void t音量textBoxの値を範囲修正したのちtextBox音量とhScrollBar音量へ反映させる()
        {
            int num;

            if (this.textBox音量.Text.Length == 0)
            {
                num = 0;
            }
            else if (!int.TryParse(this.textBox音量.Text, out num))
            {
                num = 0;
            }
            else
            {
                num = CConversion.nRoundToRange(num, 0, 100);
            }
            this.textBox音量.Text     = num.ToString();
            this.hScrollBar音量.Value = num;
        }
예제 #2
0
        public void t位置testBoxの値を範囲修正したのちtextBox位置とhScrollBar位置へ反映させる()
        {
            int num;

            if (this.textBox位置.Text.Length == 0)
            {
                num = 0;
            }
            else if (!int.TryParse(this.textBox位置.Text, out num))
            {
                num = 0;
            }
            else
            {
                num = CConversion.nRoundToRange(num, -100, 100);
            }
            this.textBox位置.Text     = num.ToString();
            this.hScrollBar位置.Value = num + 100;
        }
예제 #3
0
 private void hScrollBar位置_ValueChanged(object sender, EventArgs e)
 {
     this.textBox位置.Text = (CConversion.nRoundToRange(this.hScrollBar位置.Value, 0, 200) - 100).ToString();
 }
예제 #4
0
 private void hScrollBar音量_ValueChanged(object sender, EventArgs e)
 {
     this.textBox音量.Text = CConversion.nRoundToRange(this.hScrollBar音量.Value, 0, 100).ToString();
 }