Esempio n. 1
0
        protected virtual void OK_Click(object sender, EventArgs e)
        {
            if (Direction.SelectedIndex != -1 && BeatNumer.SelectedIndex != -1 && BeatDenom.SelectedIndex != -1)
            {
                switch (Direction.SelectedIndex)
                {
                //選択小節の1つ先
                case 0:
                    sPanel.InsertScoreForward(score, int.Parse(BeatNumer.Text), int.Parse(BeatDenom.Text), (int)BarCount.Value);
                    break;

                //選択小節の1つ前
                case 1:
                    sPanel.InsertScoreBackward(score, int.Parse(BeatNumer.Text), int.Parse(BeatDenom.Text), (int)BarCount.Value);
                    break;
                }
                Close();
            }
            else
            {
                MessageBox.Show("未選択箇所があります\n全ての項目に値を指定してください");
            }
        }
Esempio n. 2
0
 private void BarAddForward(object sender, EventArgs e)
 {
     sPanel.InsertScoreForward(selectedScore, selectedScore.BeatNumer, selectedScore.BeatDenom, 1);
 }