public CustomerViewModel()
     : base(new CustomerView())
 {
     CustomerList = new ObservableCollection<CustomerDetailViewModel>(
             BusinessContext.Instance.Model.Customers.Select(
                                             customer => new CustomerDetailViewModel
                                             {
                                                 Customer = customer
                                             }
                                           ));
     SearchCommand = new ZeroActionDelegate(SearchCustomer);
     CreateCommand = new ZeroActionDelegate(CreateCustomer, (o) => View.ControlMode.HasFlag(ControlMode.Update));
 }
 public SaleReportItem()
 {
     ViewDetailsCommand = new ZeroActionDelegate(OpenDetailView);
 }
 public CreateReportItem(string reportName, Action<object> generateReportAction)
 {
     ReportName = reportName;
     GenerateReportCommand = new ZeroActionDelegate(generateReportAction);
 }