예제 #1
0
 public CustomerModule(IRegionManager regionManager, CustomerSelectorView customerSelectorView)
 {
     _regionManager = regionManager;
     _customerSelectorView = customerSelectorView;
     ListCustomersCommand = new CategoryCommand<string>(Resources.CustomerList, Resources.Customers, OnCustomerListExecute) { Order = 40 };
     PermissionRegistry.RegisterPermission(PermissionNames.MakeAccountTransaction, PermissionCategories.Cash, Resources.CanMakeAccountTransaction);
     PermissionRegistry.RegisterPermission(PermissionNames.CreditOrDeptAccount, PermissionCategories.Cash, Resources.CanMakeCreditOrDeptTransaction);
 }
예제 #2
0
 public CustomerModule(IRegionManager regionManager, CustomerSelectorView customerSelectorView)
 {
     _regionManager        = regionManager;
     _customerSelectorView = customerSelectorView;
     ListCustomersCommand  = new CategoryCommand <string>(Resources.CustomerList, Resources.Customers, OnCustomerListExecute)
     {
         Order = 40
     };
     PermissionRegistry.RegisterPermission(PermissionNames.MakeAccountTransaction, PermissionCategories.Cash, Resources.CanMakeAccountTransaction);
     PermissionRegistry.RegisterPermission(PermissionNames.CreditOrDeptAccount, PermissionCategories.Cash, Resources.CanMakeCreditOrDeptTransaction);
 }