コード例 #1
0
 public MainForm()
 {
     InitializeComponent();
     _chord = new ChordModification();
     CmbChordLevel.Items.AddRange(_chord.PopulateChordLevel().ToArray());
     CmbUpDown.Items.AddRange(_chord.PopulateLevel().ToArray());
     CmbChordLevel.SelectedIndex= 0;
     CmbUpDown.SelectedIndex = 0;
 }
コード例 #2
0
        private void BtnChordModif_Click(object sender, EventArgs e)
        {
            List<string> chords = new List<string>();
            for (int i = 0; i < TxtChordSource.Lines.Length; i++)
            {
                chords.Add(TxtChordSource.Lines[i].ToString());
            }

            _chord = new ChordModification();
            _chord.GetChordLyricList(chords);
            _chord.ProceedLyric(CmbUpDown.SelectedItem.ToString(), double.Parse(CmbChordLevel.SelectedItem.ToString()));

            txtChordResult.Clear();
            foreach (string var in _chord._chordLiricResult)
            {
                txtChordResult.AppendText(var + System.Environment.NewLine);
            }
        }