/// <summary> /// Constructor of instance <see cref="ListWidgetModeRuntimeView"/> /// </summary> public ListWidgetModeRuntimeView(IGlobalDefectAcknowledgingService globalDefectAcknowledgingService) { _globalDefectAcknowledgingService = globalDefectAcknowledgingService; InitializeComponent(); ListWidgetRuntimeListBox.MouseRightButtonUp += ListWidgetRuntimeListBox_MouseRightButtonUp; ListWidgetRuntimeListBox.SelectionChanged += ListWidgetRuntimeListBox_SelectionChanged; }
/// <summary> /// Create a instance of <see cref="SchemeModeRuntimeViewModel"/> /// </summary> public SchemeModeRuntimeViewModel(IInteractionService interactionService, IPersistanceService persistanceService, IRuntimeModeDevicesServices devicesServices, IRuntimeModeDriversService driversService, IDeviceCommandQueueViewModel deviceCommandQueueViewModel, IDataLoadingService dataLoadingService, IGlobalDefectAcknowledgingService globalDefectAcknowledgingService, ILogInteractionViewModel logInteractionViewModel, IOutgoingLinesViewModelFactory outgoingLinesViewModelFactory, IAnalogMeterViewModelFactory analogMeterViewModelFactory, IUnityContainer container) { Guard.AgainstNullReference(interactionService, "interactionService"); Guard.AgainstNullReference(persistanceService, "persistanceService"); Guard.AgainstNullReference(devicesServices, "devicesServices"); Guard.AgainstNullReference(driversService, "driversService"); this._interactionService = interactionService; this._persistanceService = persistanceService; this._devicesServices = devicesServices; this._driversService = driversService; _dataLoadingService = dataLoadingService; _globalDefectAcknowledgingService = globalDefectAcknowledgingService; _logInteractionViewModel = logInteractionViewModel; _outgoingLinesViewModelFactory = outgoingLinesViewModelFactory; _analogMeterViewModelFactory = analogMeterViewModelFactory; _container = container; DeviceCommandQueueViewModel = deviceCommandQueueViewModel; this.BusLinkVisibleCollection = new ObservableCollection <bool>(new List <bool> { false, false, false }); this.Starter1ToResistorsLink = new ObservableCollection <bool>(new List <bool>(8)) { false, false, false, false, false, false, false, false, false, false, false }; this.Starter2ToResistorsLink = new ObservableCollection <bool>(new List <bool>(8) { false, false, false, false, false, false, false, false, false, false, false }); this.Starter3ToResistorsLink = new ObservableCollection <bool>(new List <bool>(8) { false, false, false, false, false, false, false, false, false, false, false }); this._linksCollections = new ObservableCollection <bool> [3]; this._linksCollections[0] = Starter1ToResistorsLink; this._linksCollections[1] = Starter2ToResistorsLink; this._linksCollections[2] = Starter3ToResistorsLink; OpenPicon2ModuleInformationCommand = new DelegateCommand(OnOpenPicon2ModuleInformationExecute); }
/// <summary> /// /// </summary> public WidgetRightBorderBehavior() { _soundNotificationsService = ServiceLocator.Current.GetInstance(typeof(ISoundNotificationsService)) as ISoundNotificationsService; _globalDefectAcknowledgingService = ServiceLocator.Current.GetInstance(typeof(IGlobalDefectAcknowledgingService)) as IGlobalDefectAcknowledgingService; }