public UpdatePriceTag(IDepartmentService departmentService, IMethodQueue methodQueue, ITriggerService triggerService, IApplicationState applicationState) { _departmentService = departmentService; _methodQueue = methodQueue; _triggerService = triggerService; _applicationState = applicationState; }
public Shell(IApplicationState applicationState, IMethodQueue methodQueue) { _applicationState = applicationState; _methodQueue = methodQueue; InitializeComponent(); LanguageProperty.OverrideMetadata( typeof(FrameworkElement), new FrameworkPropertyMetadata( XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag))); Application.Current.MainWindow.SizeChanged += MainWindow_SizeChanged; var selectedIndexChange = DependencyPropertyDescriptor.FromProperty(Selector.SelectedIndexProperty, typeof(TabControl)); selectedIndexChange.AddValueChanged(MainTabControl, MainTabControlSelectedIndexChanged); EventServiceFactory.EventService.GetEvent<GenericEvent<User>>().Subscribe(x => { if (x.Topic == EventTopicNames.UserLoggedIn) UserLoggedIn(x.Value); if (x.Topic == EventTopicNames.UserLoggedOut) { UserLoggedOut(x.Value); } }); EventServiceFactory.EventService.GetEvent<GenericEvent<UserControl>>().Subscribe( x => { if (x.Topic == EventTopicNames.DashboardClosed) { SerialPortService.ResetCache(); EventServiceFactory.EventService.PublishEvent(EventTopicNames.ResetCache, true); } }); EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe( x => { if (x.Topic == EventTopicNames.LocalSettingsChanged) { InteractionService.Scale(MainGrid); } }); UserRegion.Visibility = Visibility.Collapsed; RightUserRegion.Visibility = Visibility.Collapsed; Height = Properties.Settings.Default.ShellHeight; Width = Properties.Settings.Default.ShellWidth; _timer = new DispatcherTimer(); _timer.Tick += TimerTick; TimeLabel.Text = "..."; #if !DEBUG WindowStyle = WindowStyle.None; WindowState = WindowState.Maximized; #endif }
public RefreshCache(IMethodQueue methodQueue, ITriggerService triggerService, IApplicationState applicationState) { _methodQueue = methodQueue; _triggerService = triggerService; _applicationState = applicationState; }
// public UserInteraction(IMethodQueue methodQueue, IApplicationState applicationState) { _methodQueue = methodQueue; _popupDataViewModel = new PopupDataViewModel(applicationState); }