public CRuleController( IFaStorageService storageService, CClientInfo client) { _storageService = storageService; _client = client; }
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(); }
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))); }
public CMainController(IFaStorageService storageService) { _storageService = storageService; }