Esempio n. 1
0
 public CRuleController(
     IFaStorageService storageService,
     CClientInfo client)
 {
     _storageService = storageService;
     _client         = client;
 }
Esempio n. 2
0
 public CClientsListViewModel(IMainController controller, IFaStorageService storageService, Window view)
 {
     view.DataContext = this;
     _storageService = storageService;
     _controller = controller;
     _view = view;
     Clients = _storageService.FindClientsWithLastDate().Select(c => new CClientItemViewModel(c)).ToList();
 }
Esempio n. 3
0
 public CReportViewModel(IMainController controller, IFaStorageService storageService, Window view)
 {
     view.DataContext = this;
     _storageService  = storageService;
     _controller      = controller;
     _view            = view;
     int.TryParse(ConfigurationManager.AppSettings["ReportSearchLimitDefault"], out _itemsLimit);
     Events = new ObservableCollection <CEventViewModel>(_storageService.SearchEvents(new CSearchFilter {
         Limit = _itemsLimit
     })
                                                         .Select(e => new CEventViewModel(e)));
 }
Esempio n. 4
0
 public CMainController(IFaStorageService storageService)
 {
     _storageService = storageService;
 }