Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked == true)
     {
         panel1.Controls.Clear();
         UpdatePhysician updatePhysician = new UpdatePhysician();
         updatePhysician.TopLevel   = false;
         updatePhysician.AutoScroll = true;
         panel1.Controls.Add(updatePhysician);
         updatePhysician.Show();
     }
     else if (radioButton2.Checked == true)
     {
         panel1.Controls.Clear();
         UpdateNurse updateNurse = new UpdateNurse();
         updateNurse.TopLevel   = false;
         updateNurse.AutoScroll = true;
         panel1.Controls.Add(updateNurse);
         updateNurse.Show();
     }
     else if (radioButton3.Checked == true)
     {
         panel1.Controls.Clear();
         UpdateStaff updateStaff = new UpdateStaff();
         updateStaff.TopLevel   = false;
         updateStaff.AutoScroll = true;
         panel1.Controls.Add(updateStaff);
         updateStaff.Show();
     }
     else
     {
         MessageBox.Show("Please select a option to proceed ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        private void Button5_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            UpdateNurse u = new UpdateNurse();

            u.Show();
        }