Example #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     using (Theory newForm = new Theory())
     {
         newForm.ShowDialog();
     }
 }
        private void theoryButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            Theory theory = new Theory();

            theory.Closed += (o, args) =>
            {
                Show();
                theory.Dispose();
            };
            theory.Show();
        }