Пример #1
0
        private void OnMcuChanged(object sender, McuChangedEventArgs rangeChangedEventArgs)
        {
            SelectedMcu.CardsUpdated -= NewMcuOnCardsUpdated;

            SelectedMcu = rangeChangedEventArgs.NewMcu;
            UpdateRowHeaders();

            rangeChangedEventArgs.NewMcu.CardsUpdated += NewMcuOnCardsUpdated;
        }
Пример #2
0
        public virtual void OnMcuChanged(McuChangedEventArgs e)
        {
            EventHandler <McuChangedEventArgs> handler = McuChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #3
0
        private void PanelViewModelOnMcuChanged(object sender, McuChangedEventArgs rangeChangedEventArgs)
        {
            MainUnit.CardsUpdated        -= NewMcu_CardsUpdated;
            MainUnit.RoutingTableUpdated -= Receiver_EepromValuesReceived;

            MainUnit = rangeChangedEventArgs.NewMcu;

            MainUnit.RoutingTableUpdated += Receiver_EepromValuesReceived;
            rangeChangedEventArgs.NewMcu.CardsUpdated += NewMcu_CardsUpdated;
            Update();
        }
Пример #4
0
 private void PanelOnMcuChanged(object sender, McuChangedEventArgs rangeChangedEventArgs)
 {
     base.IsSelected = rangeChangedEventArgs.NewMcu.Equals(_main);
 }