Esempio n. 1
0
        void BusStateChanged(BusStateChangedEventArgs e)
        {
            BusViewModel m = FindFirtOrDefault(e.Bus);

            if (m == null)
            {
                return;
            }
            m.State = e.CurrentState;
        }
Esempio n. 2
0
 void bus_BusStateChanged(object sender, BusStateChangedEventArgs e)
 {
     this.Dispatcher.Invoke(new Action(() => this.BusStateChanged(e)));
 }