コード例 #1
0
ファイル: Bridge.cs プロジェクト: take-iwa/Traverse-Control
 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);
             }
         }
     }
 }
コード例 #2
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);
         }
     }
 }