Пример #1
0
        private void noteButton_Click(object sender, EventArgs e)
        {
            var note = (char)(sender as Button).Tag;

            string[] paths = Theory.GetNoteImages(note);
            bassPictureBox.ImageLocation     = paths[0];
            bassTextBox.Text                 = note + " в басовом ключе";
            keyboardPictureBox.ImageLocation = paths[1];
            keyboardTextBox.Text             = note + " на клавиатуре";
            treblePictureBox.ImageLocation   = paths[2];
            trebleTextBox.Text               = note + " в скрипичном ключе";
        }
Пример #2
0
 public NoteTheoryForm()
 {
     InitializeComponent();
     Buttons = new Button[] { aButton, bButton, cButton, dButton, eButton, fButton, gButton };
     Theory  = new Theory();
 }