Ejemplo n.º 1
0
 internal virtual void OnCountChange(CountChangeEventArgs e)
 {
     if (null != CountChange)
     {
         foreach (CountChangeEventHandler CountChangeHandler in CountChange.GetInvocationList())
         {
             ISynchronizeInvoke syncInvoke = CountChangeHandler.Target as ISynchronizeInvoke;
             if ((null != syncInvoke) && (syncInvoke.InvokeRequired))
             {
                 try
                 {
                     syncInvoke.Invoke(CountChangeHandler, new object[] { this, e });
                 }
                 catch { }
             }
             else
             {
                 CountChangeHandler(this, e);
             }
         }
     }
 }
 internal virtual void OnCountChange(CountChangeEventArgs e)
 {
     if (null != CountChange)
     {
         foreach (CountChangeEventHandler CountChangeHandler in CountChange.GetInvocationList())
         {
             ISynchronizeInvoke syncInvoke = CountChangeHandler.Target as ISynchronizeInvoke;
             if ((null != syncInvoke) && (syncInvoke.InvokeRequired))
             {
                 try
                 {
                     syncInvoke.Invoke(CountChangeHandler, new object[] { this, e });
                 }
                 catch { }
             }
             else
                 CountChangeHandler(this, e);
         }
     }
 }