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