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; }
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; }
private void hScrollBar位置_ValueChanged(object sender, EventArgs e) { this.textBox位置.Text = (CConversion.nRoundToRange(this.hScrollBar位置.Value, 0, 200) - 100).ToString(); }
private void hScrollBar音量_ValueChanged(object sender, EventArgs e) { this.textBox音量.Text = CConversion.nRoundToRange(this.hScrollBar音量.Value, 0, 100).ToString(); }