void _adapterManager_ActiveAdapterChanged(object sender, IBrailleIOAdapterEventArgs e) { if (ActiveAdapterChanged != null) { try { ActiveAdapterChanged.Invoke(sender, e); } catch { } } }
/// <summary> /// Fires the active adapter changed event. /// </summary> protected virtual void fire_ActiveAdapterChanged() { if (ActiveAdapterChanged != null) { try { ActiveAdapterChanged.Invoke(this, new IBrailleIOAdapterEventArgs(ActiveAdapter)); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine("ERROR in AbstractBrailleIOAdapterManagerBase fire_ActiveAdapterChanged:\r\n" + ex); } } }