public AutomationButtonWidgetViewModel(Widget widget, IApplicationState applicationState, IAutomationDao automationDao) : base(widget, applicationState) { _applicationState = applicationState; _automationDao = automationDao; ItemClickedCommand = new CaptionCommand<AutomationButtonWidgetViewModel>("", OnItemClicked); }
public TicketListerWidgetViewModel(Widget model, IApplicationState applicationState, ITicketServiceBase ticketService, IPrinterService printerService, ICacheService cacheService, IAutomationDao automationDao) : base(model, applicationState) { _applicationState = applicationState; _ticketService = ticketService; _printerService = printerService; _cacheService = cacheService; _automationDao = automationDao; ItemSelectionCommand = new DelegateCommand <TicketViewData>(OnItemSelection); EventServiceFactory.EventService.GetEvent <GenericEvent <Message> >().Subscribe( x => { if (_applicationState.ActiveAppScreen == AppScreens.EntityView && x.Topic == EventTopicNames.MessageReceivedEvent && x.Value.Command == Messages.TicketRefreshMessage) { Refresh(); } }); EventServiceFactory.EventService.GetEvent <GenericEvent <WidgetEventData> >().Subscribe( x => { if (x.Value.WidgetName == Name) { State = x.Value.Value; } }); }
public RuleViewModel(IAutomationService automationService, IAutomationDao automationDao) { _automationService = automationService; _automationDao = automationDao; SelectActionsCommand = new CaptionCommand <string>(Resources.SelectActions, OnSelectActions); Constraints = new ObservableCollection <RuleConstraint>(); }
public ActionContainerViewModel(ActionContainer model, RuleViewModel ruleViewModel, IAutomationService automationService, IAutomationDao automationDao) { Model = model; _ruleViewModel = ruleViewModel; _automationService = automationService; _automationDao = automationDao; }
public ActionContainerViewModel(ActionContainer model, RuleViewModel ruleViewModel, IAutomationService automationService,IAutomationDao automationDao) { Model = model; _ruleViewModel = ruleViewModel; _automationService = automationService; _automationDao = automationDao; }
public TicketListerWidgetViewModel(Widget model, IApplicationState applicationState, ITicketServiceBase ticketService, IPrinterService printerService, ICacheService cacheService, IAutomationDao automationDao) : base(model, applicationState) { _applicationState = applicationState; _ticketService = ticketService; _printerService = printerService; _cacheService = cacheService; _automationDao = automationDao; ItemSelectionCommand = new DelegateCommand<TicketViewData>(OnItemSelection); EventServiceFactory.EventService.GetEvent<GenericEvent<Message>>().Subscribe( x => { if (_applicationState.ActiveAppScreen == AppScreens.EntityView && x.Topic == EventTopicNames.MessageReceivedEvent && x.Value.Command == Messages.TicketRefreshMessage) { Refresh(); } }); EventServiceFactory.EventService.GetEvent<GenericEvent<WidgetEventData>>().Subscribe( x => { if (x.Value.WidgetName == Name) { State = x.Value.Value; } }); }
public AutomationButtonWidgetViewModel(Widget widget, IApplicationState applicationState, IAutomationDao automationDao) : base(widget, applicationState) { _applicationState = applicationState; _automationDao = automationDao; ItemClickedCommand = new CaptionCommand <AutomationButtonWidgetViewModel>("", OnItemClicked); }
public TicketListerWidgetCreator(ITicketServiceBase ticketServiceBase, IPrinterService printerService, ICacheService cacheService, IAutomationDao automationDao) { _ticketServiceBase = ticketServiceBase; _printerService = printerService; _cacheService = cacheService; _automationDao = automationDao; }
public AutomationService(IAutomationDao automationDao, IApplicationState applicationState, ISettingService settingService, IExpressionService expressionService) { _automationDao = automationDao; _applicationState = applicationState; _ruleActionTypeRegistry = new RuleActionTypeRegistry(); _settingService = settingService; _expressionService = expressionService; }
public RuleViewModel(IAutomationService automationService, IAutomationDao automationDao) { _automationService = automationService; _automationDao = automationDao; SelectActionsCommand = new CaptionCommand <string>(Resources.SelectActions, OnSelectActions); AddConstraintCommand = new CaptionCommand <string>(string.Format(Resources.Add_f, Resources.CustomConstraint), OnAddConstraint, CanAddConstraint); RemoveConstraintCommand = new CaptionCommand <RuleConstraintValueViewModel>(Resources.Remove, OnRemoveConstraint); Constraints = new ObservableCollection <RuleConstraint>(); }
public EntityGridWidgetCreator(IEntityService entityService, IUserService userService, ICacheService cacheService, IAutomationDao automationDao, IPrinterService printerService) { _entityService = entityService; _userService = userService; _cacheService = cacheService; _automationDao = automationDao; _printerService = printerService; }
public EntityGridWidgetCreator(IEntityService entityService, IUserService userService, ICacheService cacheService, IAutomationDao automationDao,IPrinterService printerService) { _entityService = entityService; _userService = userService; _cacheService = cacheService; _automationDao = automationDao; _printerService = printerService; }
public EntityGridWidgetViewModel(Widget model, IApplicationState applicationState, IPrinterService printerService, IEntityService entityService, IUserService userService, ICacheService cacheService, IAutomationDao automationDao) : base(model, applicationState) { _applicationState = applicationState; _cacheService = cacheService; _automationDao = automationDao; ResourceSelectorViewModel = new EntitySelectorViewModel(applicationState, entityService, userService, cacheService, printerService); EventServiceFactory.EventService.GetEvent<GenericEvent<WidgetEventData>>().Subscribe( x => { if (x.Value.WidgetName == Name) { Settings.StateFilterName = x.Value.Value; Refresh(); } }); }
public EntityGridWidgetViewModel(Widget model, IApplicationState applicationState, IPrinterService printerService, IEntityService entityService, IUserService userService, ICacheService cacheService, IAutomationDao automationDao) : base(model, applicationState) { _applicationState = applicationState; _cacheService = cacheService; _automationDao = automationDao; ResourceSelectorViewModel = new EntitySelectorViewModel(applicationState, entityService, userService, cacheService, printerService); EventServiceFactory.EventService.GetEvent <GenericEvent <WidgetEventData> >().Subscribe( x => { if (x.Value.WidgetName == Name) { Settings.StateFilterName = x.Value.Value; Refresh(); } }); }
public ExpressionService(IAutomationDao automationDao) { _automationDao = automationDao; ExpressionEngine.RegisterFunction("Call", CallFunction); }
public AutomationButtonWidgetCreator(IAutomationDao automationDao) { _automationDao = automationDao; _brushConverter = new NullBrushConverter(); }
public AutomationButtonWidgetCreator(IAutomationDao automationDao) { _automationDao = automationDao; }
// public ExpressionService(IAutomationDao automationDao, IEntityService entityService) { _automationDao = automationDao; ExpressionEngine.RegisterFunction("Call", CallFunction); EntityAccessor.EntityService = entityService; }