public BlAuxiliary(MainUnitViewModel main, CardModel card) { _card = card; Location.X = XLocation; _main = main; }
public VuMeter(MainUnitViewModel main) { _main = main; _vuTimer.Elapsed += VuTimerEvent; main.PanelSelectionChanged += (sender, args) => StopVuMeter(); _vuValues.Add(-80); }
public McuSelector(MainUnitViewModel main, PanelViewModel panel) : base(main.Id) { _main = main; _panel = panel; panel.McuChanged += PanelOnMcuChanged; }
private void InitiateSelectors() { ButtonRangeSelectors = new ObservableCollection <ButtonRangeSelector>(Enumerable. Range(0, 18).Select(i => new ButtonRangeSelector(i, this))); ButtonRangeSelectors[0].IsSelected = true; SelectedMcu = _main.TabCollection.OfType <MainUnitViewModel>().First(i => i.Id == 0); McuSelectors = new ObservableCollection <McuSelector>( _main.TabCollection.OfType <MainUnitViewModel>().Select(q => new McuSelector(q, this))); _main.SystemChanged += MainOnSystemChanged; McuSelectors[0].IsSelected = true; ColumnHeaderViews = new ObservableCollection <ColumnHeaderViewModel>(Enumerable.Range(0, 12).Select( x => new ColumnHeaderViewModel(x, SelectedMcu, this))); ButtonChanged += (sender, args) => ButtonStartId = args.NewId; McuChanged += OnMcuChanged; RowHeaders = new ObservableCollection <RowHeaderViewModel>(GenRows(SelectedMcu)); SelectedMcu.CardsUpdated += NewMcuOnCardsUpdated; }
public BlLink(MainUnitViewModel main) { LinkOptions = new ObservableCollection <LinkOption>(); _main = main; Location.X = XLocation; Cards(main.DataModel.ExpansionCards); for (var x = 0; x < 15; x++) { Snapshots.Add(new SnapShot(this) { Offset = { X = 0, Y = SnapshotHeight + RowHeight * x + _innerSpace(x) }, SnapType = SnapType.Gray, RowId = x }); Snapshots.Add(new SnapShot(this) { Offset = { X = Size.X, Y = SnapshotHeight + RowHeight * x + _innerSpace(x) }, SnapType = SnapType.Red, RowId = x }); } Snapshots.Add(new SnapShot(this) { Offset = { X = SnapshotWidth, Y = Size.Y }, RowId = 30 }); }
public BlOutput(FlowModel flow, MainUnitViewModel main) { _flow = flow; Location.X = XLocation; main.PresetNamesUpdated += Receiver_PresetNamesUpdated; main.DspMirrorUpdated += ReceiverOnDspMirrorUpdated; }
public LinkCardOption(CardModel card, MainUnitViewModel main, BlLink link) { _card = card; _main = main; _link = link; _main.CardsUpdated += (sender, args) => RaisePropertyChanged(() => IsVisible); }
public BlSpMatrix() { _main = new MainUnitViewModel(); _card = new CardModel(); ChkVms = new ObservableCollection <ChkVm>(GenMatrix()); }
public MessageSelectViewModel(MainUnitViewModel main, int id) { _main = main; _id = id; main.SdCardMessagesReceived += Receiver_SdCardMessagesReceived; main.SdCardPositionsReceived += ReceiverOnSdCardPositionsReceived; }
public SendData(MainUnitViewModel main) : base(main) { PopulateItems(); foreach (var itemtoDownload in ItemstoDownload) { AttachHandler(itemtoDownload); } }
public BlAuxSpeakerPeq(MainUnitViewModel main, CardModel card) : base(main) { Location.X = XLocation; _card = card; main.PresetNamesUpdated += Receiver_PresetNamesUpdated; }
public BlSpeakerPeq(FlowModel flow, MainUnitViewModel main) : base(main) { Location.X = XLocation; _flow = flow; main.PresetNamesUpdated += Receiver_PresetNamesUpdated; }
public BlDelay(MainUnitViewModel main, FlowModel flow) { _main = main; _flow = flow; Location.X = XLocation; Location.Y = RowHeight; _main.DelayChanged += () => RaisePropertyChanged(() => DisplaySetting); }
public BlInputPeq(FlowModel flow, MainUnitViewModel main) : base(main) { Location.X = XLocation; _flow = flow; SetYLocation(); }
public BlMonitor(FlowModel flow, MainUnitViewModel main, CardModel card) { _card = card; _main = main; Location.X = XLocation; _flow = flow; _main.KreisUpdated += ReceiverOnEepromReceived; }
protected PeqBaseViewModel(MainUnitViewModel main) { Main = main; PresentationTraceSources.DataBindingSource.Switch.Level = SourceLevels.Critical; main.RedundancyUpdated += EepromHandlerOnSpeakerRedundancyDataUpdated; main.PresetNamesUpdated += EepromHandlerOnPresetNamesUpdated; }
private void OnMcuChanged(object sender, McuChangedEventArgs rangeChangedEventArgs) { SelectedMcu.CardsUpdated -= NewMcuOnCardsUpdated; SelectedMcu = rangeChangedEventArgs.NewMcu; UpdateRowHeaders(); rangeChangedEventArgs.NewMcu.CardsUpdated += NewMcuOnCardsUpdated; }
public BlSpeaker(FlowModel flow, MainUnitViewModel main, int line) { _flow = flow; _main = main; _line = line; Location.X = XLocation + (line > 0 ? 15 : 5); UpdateLoads(); }
protected VuMeterControl(MainUnitViewModel main) { _main = main; _vuMeterAvarage = -80; _vuMeterCurrent = -80; _vuMeterMax = -80; main.VuMeter.VuMeterActivated += VuMeter_VuMeterActivated; main.VuMeter.VuDataReceived += VuMeter_VuDataReceived; }
public BlInputName(FlowModel flow, MainUnitViewModel main) : base(main) { _flow = flow; _main = main; //main.SensitivityDownloaded += ReceiverOnSensitivityDownloaded; main.PresetNamesUpdated += Receiver_PresetNamesUpdated; main.DspMirrorUpdated += Receiver_DspMirrorUpdated; main.MonitorSliderUpdated += (a, b) => RaisePropertyChanged(() => MonitorSlider); }
public BlSpMatrix(MainUnitViewModel main, CardModel card) { _main = main; _card = card; Location.X = XLocation; if (main.DataModel.LoudSpeakerMatrix == null) { main.DataModel.LoudSpeakerMatrix = new Dictionary <int, int>(); } ChkVms = new ObservableCollection <ChkVm>(GenMatrix()); }
public AuxLinkOption(FlowModel flow, CardModel card, MainUnitViewModel main, BlLink link) { _card = card; _main = main; _link = link; _flow = flow; Messenger.Default.Register <int>(this, "InpName", i => { if (i != _flow.Id) { return; } RaisePropertyChanged(() => Content); }); link.LinkChanged += LinkOnLinkChanged; }
public BlExtInput(FlowModel flow, MainUnitViewModel unit, MainViewModel main) : base(unit) { _flow = flow; Unit = unit; _main = main; _channelId = _vuBlock[0]; if (_flow.Id < GenericMethods.StartCountFrom) { throw new ArgumentException("External input on flow " + _flow.Id); } Unit.ExtinputUpdate += () => RaisePropertyChanged(() => DisplaySetting); Unit.DspMirrorUpdated += Receiver_DspMirrorUpdated; InitSliders(); Unit.VuMeter.VuMeterActivated += (sender, args) => RaisePropertyChanged(() => VuActivated); }
public ColumnHeaderViewModel(int relativeButtonId, MainUnitViewModel mainUnit, PanelViewModel panelViewModel) { _relativeButtonId = relativeButtonId; MainUnit = mainUnit; ButtonId = relativeButtonId; Cells = new ObservableCollection <MatrixCellViewModel>(GenCells()); UpdateAllHeaders(); panelViewModel.ButtonChanged += PanelViewModelOnButtonChanged; panelViewModel.McuChanged += PanelViewModelOnMcuChanged; MainUnit.CardsUpdated += NewMcu_CardsUpdated; AlarmSelectionChanged += OnAlarmSelectionChanged; mainUnit.RoutingTableUpdated += Receiver_EepromValuesReceived; }
public BlEmergency(MainUnitViewModel main) { _main = main; for (var x = 0; x < 5; x++) { Snapshots.Add(new SnapShot(this) { Offset = { X = 0, Y = SnapshotHeight + RowHeight * x }, SnapType = SnapType.Gray, RowId = x }); } Snapshots.Add(new SnapShot(this) { Offset = { X = SnapshotWidth, Y = 0 }, RowId = 30 }); Location.X = XLocation; SetYLocation(); UpdatePanelCount(); }
public AttachedPanelUpdater(MainUnitViewModel main) : base(main) { }
public BlEmergency() { _main = new MainUnitViewModel(); }
public Auxlinks(MainUnitViewModel main) : base(main) { }
public Delaysettings(MainUnitViewModel main) : base(main) { }
public SdMessages(MainUnitViewModel main) : base(main) { }