Ejemplo n.º 1
0
        private void RegistrationButton_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            PatientRegistration pp = new PatientRegistration();

            pp.Show();
        }
 private void button2_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         panel1.Controls.Clear();
         PatientRegistration registration = new PatientRegistration(panel1);
         registration.TopLevel   = false;
         registration.AutoScroll = true;
         panel1.Controls.Add(registration);
         registration.Show();
     }
     else
     {
         panel1.Controls.Clear();
         BookAppointments obj = new BookAppointments(patientName);
         obj.TopLevel   = false;
         obj.AutoScroll = true;
         panel1.Controls.Add(obj);
         obj.Show();
     }
 }