Example #1
0
        private void Production_Click(object sender, EventArgs e)
        {
            panel2.Controls.Clear();
            var addproduction = new AddProduction();

            panel2.Controls.Add(addproduction);
            addproduction.HandleDestroyed += new EventHandler(Updatelist);
        }
Example #2
0
 private void Insert_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked == true)
     {
         var addmovies = new AddMovie();
         panel2.Controls.Add(addmovies);
     }
     if (radioButton2.Checked == true)
     {
         var addproduction = new AddProduction();
         panel2.Controls.Add(addproduction);
     }
 }