Beispiel #1
0
 public ChitSubscriberViewModel(IChitSubscriberDataService chitSubscriberDataService, IChitFeatureService chitFeatureService)
 {
     try
     {
         this._chitSubscriberDataService = chitSubscriberDataService;
         if (IsInDesignMode)
         {
             Title = "Subscriber Window (Design Mode)";
         }
         else
         {
             Title = "Subscriber Window";
             LoadMasterData();
         }
         AgentFeature             = chitFeatureService.GetFeature().Agent;
         SaveSubscriberCommand    = new RelayCommand(SaveSubscriber);
         FindAgentByIdCommand     = new RelayCommand(FindAgentById);
         FindChitGroupByIdCommand = new RelayCommand(FindChitGroupById);
     }
     catch (Exception ex)
     {
         while (ex.InnerException != null)
         {
             ex = ex.InnerException;
         }
         Messenger.Default.Send <NotificationMessage>(new NotificationMessage(ex.Message));
     }
 }
Beispiel #2
0
 public ChitSubscriberDueDataService(IUnitOfWork <DatabaseContext> unitOfWork, IChitSubscriberDueListDataService dueListService, IChitSubscriberDataService chitSubscriberDataService)
 {
     this._unitOfWork                = unitOfWork;
     this._dueListService            = dueListService;
     this._chitSubscriberDataService = chitSubscriberDataService;
 }