Ejemplo n.º 1
0
 private void appointmentsButton_Click(object sender, EventArgs e)
 {
     this.Hide();
     if (CustIndx != null)
     {
         string          customerNameToPass = returnedSelectTable.Rows[(int)CustIndx].ItemArray[1].ToString();
         AppointmentForm appointmentForm    = new AppointmentForm(customerNameToPass, null);
         CustIndx = null;
         appointmentForm.Show();
     }
     else
     {
         AppointmentForm appointmentForm = new AppointmentForm();
         appointmentForm.Show();
     }
 }
Ejemplo n.º 2
0
 //Form Switch buttons
 private void AppointmentButton_Click(object sender, EventArgs e)
 {
     this.Hide();
     if (MainIndx >= 0)
     {
         string          appointmentIDToPass = returnedSelectTable.Rows[(int)MainIndx].ItemArray[2].ToString();
         AppointmentForm appointmentForm     = new AppointmentForm(appointmentIDToPass);
         ComboBoxIndx = null;
         MainIndx     = null;
         appointmentForm.Show();
     }
     else
     {
         AppointmentForm appointmentForm = new AppointmentForm();
         ComboBoxIndx = null;
         appointmentForm.Show();
     }
 }