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();
 }
예제 #3
0
 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();
     }
 }
예제 #4
0
 private void CreateCustomerClicked(object sender, RoutedEventArgs e)
 {
     CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af);
     ccd.ShowDialog();
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
        private void CreateCustomerClicked(object sender, RoutedEventArgs e)
        {
            CreateCustomerDialog ccd = new CreateCustomerDialog(this, cf, af, customersList);

            ccd.ShowDialog();
        }