public AddAppointmentDialog(ICustomer icustomer, CreateCustomerDialog createCustomerDialog, List <IAppointment> appointments)
 {
     this.iCustomer    = icustomer;
     this.ccd          = createCustomerDialog;
     this.appointments = appointments;
     InitializeComponent();
 }
 public AddAppointmentDialog(ICustomer icustomer, CreateCustomerDialog createCustomerDialog, List<IAppointment> appointments)
 {
     this.iCustomer = icustomer;
     this.ccd = createCustomerDialog;
     this.appointments = appointments;
     InitializeComponent();
 }
 private void editCustomerButtonClicked(object sender, RoutedEventArgs e)
 {
     if (customersDataGrid.SelectedItem != null)
     {
         ICustomer            selectedCustomer = customersDataGrid.SelectedItem as ICustomer;
         CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af, customersList, selectedCustomer);
         ccd.ShowDialog();
     }
     else
     {
         CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af, customersList);
         ccd.ShowDialog();
     }
 }
Example #4
0
 private void CreateCustomerClicked(object sender, RoutedEventArgs e)
 {
     CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af);
     ccd.ShowDialog();
 }
 private void editCustomerButtonClicked(object sender, RoutedEventArgs e)
 {
     if (customersDataGrid.SelectedItem != null)
     {
         ICustomer selectedCustomer = customersDataGrid.SelectedItem as ICustomer;
         CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af, customersList, selectedCustomer);
         ccd.ShowDialog();
     }
     else
     {
         CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af, customersList);
         ccd.ShowDialog();
     }
 }
        private void CreateCustomerClicked(object sender, RoutedEventArgs e)
        {
            CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af, customersList);

            ccd.ShowDialog();
        }