Пример #1
0
        private void customButtom_Click(object sender, EventArgs e)
        {
            Thread.Sleep(180);
            menuClick.Play();
            CustomLevel cl = new CustomLevel();
            Form        a  = this.FindForm();

            a.Controls.Remove(this);
            a.Controls.Add(cl);
        }
Пример #2
0
        private void CustomButtom_Click(object sender, EventArgs e)
        {
            Thread.Sleep(180);
            menuClick.Play();
            difficulty = "Custom";
            CustomLevel cl = new CustomLevel();

            cl.Location = new Point((Screen.PrimaryScreen.WorkingArea.Width - cl.Width) / 2, (Screen.PrimaryScreen.WorkingArea.Height - cl.Height) / 2);
            Form a = this.FindForm();

            a.Controls.Remove(this);
            a.Controls.Add(cl);
        }