コード例 #1
0
 private void btnEditCustomer_Click(object sender, RoutedEventArgs e)
 {
     if (CustomersGrid.SelectedIndex >= 0)
     {
         currentCustomer = CustomersGrid.SelectedItem as Customer;
         AddEditCustomer addWindow = new AddEditCustomer(customerDataAccess, currentCustomer);
         addWindow.ShowDialog();
     }
 }
コード例 #2
0
        private void btnAddCustomer_Click(object sender, RoutedEventArgs e)
        {
            AddEditCustomer addWindow = new AddEditCustomer(customerDataAccess);

            addWindow.ShowDialog();
        }