protected virtual void OnDefaultChanged(DefaultChangedEventArgs e) { if (DefaultChanged != null) { DefaultChanged(this, e); } }
private void Device_DefaultChanged(object sender, DefaultChangedEventArgs e) { if (!e.Default) { return; } var device = sender as Eo.VisualDevice; if (device == null) { return; } DeviceHelper.DefaultDeviceByIndex(device.Index); foreach (var dev in _devices) { if (dev != device) { dev.UndefaultDevice(); } } }