예제 #1
0
 public CustomerVM()
 {
     _customerCatalog = CustomerCatalog.Instance;
     _customers       = _customerCatalog.Customers;
     _deleteCommand   = new DeleteCommand(this, _customerCatalog);
     //_displayCustomers = _customerCatalog.Customers;
     _customerEditCommand = new CustomerEditCommand(this, _customerCatalog);
 }
예제 #2
0
 private void RaiseCustomerAddEditDeleteCommandsCanExecute()
 {
     CustomerAddCommand.RaiseCanExecuteChanged();
     CustomerEditCommand.RaiseCanExecuteChanged();
     CustomerDeleteCommand.RaiseCanExecuteChanged();
 }