Esempio n. 1
0
 private void AddCustomer()
 {
     CustomerViewModel cvm = new CustomerViewModel();
     CustomerView dv = new CustomerView();
     dv.DataContext = cvm;
     dv.ShowDialog();
     GetCustomers();
 }
Esempio n. 2
0
        private void EditCustomer()
        {
            CustomerViewModel cvm = new CustomerViewModel(this.SelectedCustomer.CustomerId);
            CustomerView cv = new CustomerView();
            cv.DataContext = cvm;
            cv.ShowDialog();

            GetCustomers();
        }