public DialogService(IDataService dataService, IUserSession userSession, IEstimateService estimateService, IUserRepository users) { _dataService = dataService; _userSession = userSession; _estimateService = estimateService; _users = users; InternalCommands.TaskDeleteStart.RegisterCommand(new DelegateCommand <Task>(TaskDeleteStart)); InternalCommands.ProjectDeleteStart.RegisterCommand(new DelegateCommand <Project>(ProjectDeleteStart)); InternalCommands.ProjectAddStart.RegisterCommand(new DelegateCommand <Customer>(ProjectAddStart)); InternalCommands.TimeEntryDeleteStart.RegisterCommand(new DelegateCommand <TimeEntry>(TimeEntryDeleteStart)); InternalCommands.TimeEntryEditStart.RegisterCommand(new DelegateCommand <TimeEntry>(TimeEntryEditStart)); InternalCommands.TimeEntryAddStart.RegisterCommand(new DelegateCommand <Task>(TimeEntryAddStart)); InternalCommands.TaskEditStart.RegisterCommand(new DelegateCommand <Task>(TaskEditStart)); InternalCommands.TaskAddStart.RegisterCommand(new DelegateCommand <Project>(TaskAddStart)); InternalCommands.ProjectEditStart.RegisterCommand(new DelegateCommand <Project>(ProjectEditStart)); InternalCommands.CustomerEditStart.RegisterCommand(new DelegateCommand <Customer>(CustomerEditStart)); InternalCommands.CustomerDeleteStart.RegisterCommand(new DelegateCommand <Customer>(CustomerDeleteStart)); InternalCommands.CustomerAddStart.RegisterCommand(new DelegateCommand <object>(CustomerAddStart)); InternalCommands.CreateTimeEntryTypeStart.RegisterCommand( new DelegateCommand <Customer>(CreateTimeEntryTypeStart)); InternalCommands.EditTimeEntryTypeStart.RegisterCommand( new DelegateCommand <TimeEntryType>(EditTimeEntryTypeStart)); InternalCommands.EditCustomerTimeEntryTypesStart.RegisterCommand( new DelegateCommand <Customer>(EditCustomerTimeEntryTypesStart)); InternalCommands.CustomerInvoiceGroupComplete.RegisterCommand( new DelegateCommand(CustomerInvoiceGroupAddCompleted)); InternalCommands.CustomerInvoiceGroupAddStart.RegisterCommand( new DelegateCommand <Customer>(CustomerInvoiceGroupAddStart)); }
public CountryController(ICountryService countryService, IStateProvinceService stateProvinceService, IEstimateService EstimateService, ILocalizationService localizationService, IAddressService addressService, IPermissionService permissionService, ILocalizedEntityService localizedEntityService, ILanguageService languageService, IStoreService storeService, IStoreMappingService storeMappingService, IExportManager exportManager, IImportManager importManager) { this._countryService = countryService; this._stateProvinceService = stateProvinceService; this._EstimateService = EstimateService; this._localizationService = localizationService; this._addressService = addressService; this._permissionService = permissionService; this._localizedEntityService = localizedEntityService; this._languageService = languageService; this._storeService = storeService; this._storeMappingService = storeMappingService; this._exportManager = exportManager; this._importManager = importManager; }
public ReportController(IInvoiceService invoiceService, ICreditMemoService creditMemoService, ISalesReceiptService salesReceiptService, IEstimateService estimateService) { _services.Add(invoiceService); _services.Add(creditMemoService); _services.Add(salesReceiptService); _services.Add(estimateService); }
public EditTaskViewModel(Task task, IDataService dataService, IEstimateService estimateService) { _estimateService = estimateService; SaveCommand = new DelegateCommand <object>(SaveTask, CanSaveTask); CancelCommand = new DelegateCommand <object>(CancelEdit); _dataService = dataService; _task = task; _isNew = _task.Id == 0; //Todo: Get these colors from some resource _okColor = Color.FromArgb(255, 5, 193, 0); _shouldDivideColor = Color.FromArgb(255, 199, 220, 0); _mustDivideColor = Color.FromArgb(255, 220, 0, 0); UpdateStatus(); }