Exemple #1
0
 private void NewTicketWithCustomerBttn_Click(object sender, EventArgs e)
 {
     if (ticketID == 0)
     {
         MessageBox.Show("You need to save this ticket before you can create a new ticket with this customer!");
         return;
     }
     CustomerRepository repo = new CustomerRepository();
     CustomerResource resource = repo.getCustomerById(customerId);
     AlterationForm form = new AlterationForm(resource);
     form.Show();
 }
Exemple #2
0
 private void EditCustomerButton_Click(object sender, EventArgs e)
 {
     CustomerRepository repo = new CustomerRepository();
     CustomerResource resource = repo.getCustomerById(customerId);
     CustomerProfile profile = new CustomerProfile(resource, CustomerProfileFinishedEditing);
     profile.Show();
 }