private void ApplyButton_Click(object sender, EventArgs e) { try { (Properties.Settings.Default.GridLines) = GridPictureBox.BackColor; (Properties.Settings.Default.BackGround) = BGPictureBox.BackColor; (Properties.Settings.Default.QtrNoteSeparator) = QtrPictureBox.BackColor; (Properties.Settings.Default.BarSeparator) = BarOctPictureBox.BackColor; (Properties.Settings.Default.NoteFill) = NoteFillPictureBox.BackColor; (Properties.Settings.Default.NoteOutline) = NoteOutlinePictureBox.BackColor; Properties.Settings.Default.Save(); } catch { MessageBox.Show("Error Recording Colour Scheme"); LoadDisplayOptions(); } PreviewTheScoreUserControl.PaintGrid(); }
//Options private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { OptionsForm MyOptions = new OptionsForm(); MyOptions.ShowDialog(this); if (MainScore != null) { MainScore.PaintGrid(); UpdateMainForm(); } }