示例#1
0
 public void AddInvoke(DelegateCall c)
 {
     if (!c.Invoke())
     {
         _calls.Enqueue(c);
     }
 }
示例#2
0
 public void AddInvoke(DelegateCall c)
 {
     if(!c.Invoke())
     {
         _calls.Enqueue(c);   
     }
 }
示例#3
0
 private void Invoke(DelegateCall a)
 {
     if (!IsDisposed)
     {
         InvokeManager.Instance.AddInvoke(a);
     }
 }
示例#4
0
 public void UpdateProgressBar(int persent, bool total)
 {
     var d = new DelegateCall(this, new MainForm.UpdateProgressBarDelegate(updateProgressBarUnsafe), persent,
                              total);
     Invoke(d);
 }
示例#5
0
 public void SetVersionType(String va, VersionType a)
 {
     var d = new DelegateCall(this, new MainForm.SetVersionTypeDelegate(SetVersionTypeU), va,  a);
    
     Invoke(d);
 }
示例#6
0
 public void Invoke(DelegateCall delegateCall)
 {
     if(IsCanInvoke)
     {
         InvokeManager.Instance.AddInvoke(delegateCall);
     }
 }