private void OnHardwareDeviceChanged(object o, DeviceChangedEventArgs args) { DapSource source; if (!sources.TryGetValue (args.Device.Uuid, out source)) { MapDevice (args.Device); return; } PotentialSource potential = source as PotentialSource; if (potential != null) { potential.TryInitialize (); } }