Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e) //create new customer
        {
            create CreateCustomer = new create();

            CreateCustomer.ShowDialog();
            CreateCustomer.user = user;
        }
Ejemplo n.º 2
0
 private void Manager_SelectedIndexChanged(object sender, EventArgs e) //When the Manager chooses a new option, open corresponding window
 {
     if (Manager.SelectedIndex == 0)
     {
         create CreateCustomer = new create();
         CreateCustomer.getUser = "******";
         CreateCustomer.ShowDialog();
     }
     else if (Manager.SelectedIndex == 1)
     {
         CheckBookingsStaff checkBooking = new CheckBookingsStaff();
         checkBooking.getUser = "******";
         checkBooking.ShowDialog();
     }
     else if (Manager.SelectedIndex == 2)
     {
         NewBooking CreateBooking = new NewBooking();
         CreateBooking.getUser = "******";
         CreateBooking.user    = 1;
         CreateBooking.ShowDialog();
     }
     else if (Manager.SelectedIndex == 3)
     {
         SaleReps sRepsDetails = new SaleReps();
         sRepsDetails.ShowDialog();
     }
     else if (Manager.SelectedIndex == 4)
     {
         Upgrade upgrade = new Upgrade();
         upgrade.ShowDialog();
     }
 }
Ejemplo n.º 3
0
 private void SalesRep_SelectedIndexChanged(object sender, EventArgs e) //When a salesRep chooses a new option, open corresponding window
 {
     if (SalesRep.SelectedIndex == 0)
     {
         create CreateCustomer = new create();
         CreateCustomer.getUser = "******";
         CreateCustomer.ShowDialog();
     }
     else if (SalesRep.SelectedIndex == 2)
     {
         NewBooking CreateBooking = new NewBooking();
         CreateBooking.getUser = "******";
         CreateBooking.user    = user;
         CreateBooking.ShowDialog();
     }
     else if (SalesRep.SelectedIndex == 1)
     {
         CheckBookingsStaff checkBooking = new CheckBookingsStaff();
         checkBooking.getUser = "******";
         checkBooking.ShowDialog();
     }
 }
Ejemplo n.º 4
0
        private void newAccountToolStripMenuItem_Click(object sender, EventArgs e)
        {
            create f2 = new create();

            f2.ShowDialog();
        }
Ejemplo n.º 5
0
        private void button1_Click(object sender, EventArgs e)
        {
            create f = new create();

            f.ShowDialog();
        }