Пример #1
0
        //New Score
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ToolPanel.Enabled   = true;
            ButtonPanel.Enabled = true;
            NoteLengthComboBox.SelectedIndex = -1;
            //If a score already exists, dispose of it
            if (MainScore != null)
            {
                MainScore.Dispose();
            }

            MainScore = new ScoreUserControl();
            MainScore.ScorePictureBox.MouseMove += new MouseEventHandler(GetCords);
            MainScore.Location = new Point(12, 66);
            this.Text          = this.Text.Substring(0, 20) + " - New";
            MainScore.Visible  = false;
            this.Controls.Add(MainScore);
            ScoreResize();
            MainScore.Visible = true;
            UpdateMainForm();
        }