void ActivitySystem_DeviceAdded(object sender, DeviceEventArgs e) { Notifier.NotifyAll(NotificationType.DeviceAdded, e.Device); }
void node_DeviceChanged(object sender, DeviceEventArgs e) { //OnDeviceChanged(e); }
void ActivityNode_DeviceAdded( object sender, DeviceEventArgs e ) { devices.AddOrUpdate( e.Device.Id, e.Device, ( key, oldValue ) => e.Device ); }
protected virtual void OnDeviceChanged( DeviceEventArgs e ) { var handler = DeviceChanged; if ( handler != null ) handler( this, e ); }
void ActivityNode_DeviceChanged( object sender, DeviceEventArgs e ) { devices[ e.Device.Id ].UpdateAllProperties( e.Device ); }