Пример #1
0
 void _adapterManager_ActiveAdapterChanged(object sender, IBrailleIOAdapterEventArgs e)
 {
     if (ActiveAdapterChanged != null)
     {
         try { ActiveAdapterChanged.Invoke(sender, e); }
         catch { }
     }
 }
Пример #2
0
 /// <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); }
     }
 }