Example #1
0
 private void queue_OnRemove(object sender, DUQueueEventArgs e)
 {
     foreach (OperationInfo op in e.Operations)
     {
         if (updatedOp.Contains(op))
         {
             lock (locker)
             {
                 if (updatedOp.Contains(op))
                 {
                     updatedOp.Remove(op);
                 }
             }
         }
     }
     if (lvItems.InvokeRequired)
     {
         lvItems.Invoke(new AnonymousFunction(delegate()
         {
             RemoveItems(e.Operations);
             RefreshControls();
         }));
     }
     else
     {
         RemoveItems(e.Operations);
         RefreshControls();
     }
 }
Example #2
0
 private void queue_OnEnqueue(object sender, DUQueueEventArgs e)
 {
     if (lvItems.InvokeRequired)
     {
         lvItems.Invoke(new AnonymousFunction(delegate() {
             AddItems(e.Operations, 0);
             RefreshControls();
         }));
     }
     else
     {
         AddItems(e.Operations, 0);
         RefreshControls();
     }
 }
Example #3
0
 private void queue_OnEnqueue(object sender, DUQueueEventArgs e)
 {
     Interlocked.Increment(ref dirty);
 }
Example #4
0
 private void queue_OnRemove(object sender, DUQueueEventArgs e)
 {
     Interlocked.Increment(ref dirty);
 }
Example #5
0
 private void queue_OnRemove(object sender, DUQueueEventArgs e)
 {
     foreach (OperationInfo op in e.Operations)
     {
         if (updatedOp.Contains(op))
         {
             lock (locker)
             {
                 if (updatedOp.Contains(op))
                     updatedOp.Remove(op);
             }
         }
     }
     if (lvItems.InvokeRequired)
         lvItems.Invoke(new AnonymousFunction(delegate()
         {
             RemoveItems(e.Operations);
             RefreshControls();
         }));
     else
     {
         RemoveItems(e.Operations);
         RefreshControls();
     }
 }
Example #6
0
 private void queue_OnEnqueue(object sender, DUQueueEventArgs e)
 {
     if (lvItems.InvokeRequired)
         lvItems.Invoke(new AnonymousFunction(delegate() {
             AddItems(e.Operations, 0);
             RefreshControls();
         }));
     else
     {
         AddItems(e.Operations, 0);
         RefreshControls();
     }
 }