コード例 #1
0
 public CRuleController(
     IFaStorageService storageService,
     CClientInfo client)
 {
     _storageService = storageService;
     _client         = client;
 }
コード例 #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();
 }
コード例 #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)));
 }
コード例 #4
0
 public CMainController(IFaStorageService storageService)
 {
     _storageService = storageService;
 }