Exemple #1
0
 internal virtual void OnBridgeChange(BridgeChangeEventArgs e)
 {
     if (null != BridgeChange)
     {
         foreach (BridgeChangeEventHandler BridgeChangeHandler in BridgeChange.GetInvocationList())
         {
             ISynchronizeInvoke syncInvoke = BridgeChangeHandler.Target as ISynchronizeInvoke;
             if ((null != syncInvoke) && (syncInvoke.InvokeRequired))
             {
                 try
                 {
                     syncInvoke.Invoke(BridgeChangeHandler, new object[] { this, e });
                 }
                 catch { }
             }
             else
             {
                 BridgeChangeHandler(this, e);
             }
         }
     }
 }
 internal virtual void OnBridgeChange(BridgeChangeEventArgs e)
 {
     if (null != BridgeChange)
     {
         foreach (BridgeChangeEventHandler BridgeChangeHandler in BridgeChange.GetInvocationList())
         {
             ISynchronizeInvoke syncInvoke = BridgeChangeHandler.Target as ISynchronizeInvoke;
             if ((null != syncInvoke) && (syncInvoke.InvokeRequired))
             {
                 try
                 {
                     syncInvoke.Invoke(BridgeChangeHandler, new object[] { this, e });
                 }
                 catch { }
             }
             else
                 BridgeChangeHandler(this, e);
         }
     }
 }