Ejemplo n.º 1
0
 private void ClearCompletedResult(RetrieveProgressResult result)
 {
     if (result.Status != RetrieveStatus.Queued || result.Status != RetrieveStatus.InProgress)
     {
         RetrieveCoordinator.Coordinator.RemoveResult(result);
     }
 }
Ejemplo n.º 2
0
 private void CancelRetrieve(RetrieveProgressResult result)
 {
     if (result.Status == RetrieveStatus.InProgress || result.Status == RetrieveStatus.Queued)
     {
         RetrieveCoordinator.Coordinator.CancelRetrieve(result);
     }
 }
 protected void SetStatus(RetrieveStatus status, string message, RetrieveProgressResult result)
 {
     if (result != null && status != result.Status)
     {
         OnStatusChanged(status, message, result);
     }
 }
 private void CancelRetrieve(RetrieveProgressResult result)
 {
     if (result.Status == RetrieveStatus.InProgress || result.Status == RetrieveStatus.Queued)
     {
         RetrieveCoordinator.Coordinator.CancelRetrieve(result);
     }
 }
 protected void OnResultRemoved(RetrieveProgressResult result)
 {
     if (SynchronizationContext.Current != _uiThreadSynchronizationContext)
     {
         _uiThreadSynchronizationContext.Post(delegate { OnResultRemoved(result); }, null);
     }
     else
     {
         ResultsTable.Items.Remove(result);
     }
 }
 protected void OnStatusChanged(RetrieveStatus status, RetrieveProgressResult result)
 {
     if (SynchronizationContext.Current != _uiThreadSynchronizationContext)
     {
         _uiThreadSynchronizationContext.Post(delegate { OnStatusChanged(status, result); }, null);
     }
     else
     {
         result.Status = status;
         ResultsTable.Items.NotifyItemUpdated(result);
     }
 }
 protected void OnStatusChanged(RetrieveStatus status, string message, RetrieveProgressResult result)
 {
     if (SynchronizationContext.Current != _uiThreadSynchronizationContext)
     {
         _uiThreadSynchronizationContext.Post(delegate { OnStatusChanged(status, message, result); }, null);
     }
     else
     {
         result.Status          = status;
         result.ProgressMessage = string.IsNullOrEmpty(message) ? "" : message;
         ResultsTable.Items.NotifyItemUpdated(result);
     }
 }
 protected void OnStatusChanged(RetrieveStatus status, RetrieveProgressResult result)
 {
     if (SynchronizationContext.Current != _uiThreadSynchronizationContext)
     {
         _uiThreadSynchronizationContext.Post(delegate { OnStatusChanged(status, result); }, null);
     }
     else
     {
         result.Status = status;
         ResultsTable.Items.NotifyItemUpdated(result);
     }
 }
 protected void OnResultUpdated(RetrieveProgressResult result)
 {
     if (SynchronizationContext.Current != _uiThreadSynchronizationContext)
     {
         _uiThreadSynchronizationContext.Post(delegate { OnResultUpdated(result); }, null);
     }
     else
     {
         ResultsTable.Items.NotifyItemUpdated(result);
     }
 }
 public void RemoveResult(RetrieveProgressResult result)
 {
     OnResultRemoved(result);
 }
 public void CancelRetrieve(RetrieveProgressResult result)
 {
     this.SetStatus(RetrieveStatus.CancelRequested, result);
 }
 private void ClearCompletedResult(RetrieveProgressResult result)
 {
     if (result.Status != RetrieveStatus.Queued || result.Status != RetrieveStatus.InProgress)
     {
         RetrieveCoordinator.Coordinator.RemoveResult(result);
     }
 }
 public void CancelRetrieve(RetrieveProgressResult result)
 {
     this.SetStatus(RetrieveStatus.CancelRequested, result);
 }
 protected RetrieveCommand()
 {
     _result = new RetrieveProgressResult();
     _result.Status = RetrieveStatus.Queued;
 }
 public void RemoveResult(RetrieveProgressResult result)
 {
     OnResultRemoved(result);
 }
 protected void OnStatusChanged(RetrieveStatus status, string message, RetrieveProgressResult result)
 {
     if (SynchronizationContext.Current != _uiThreadSynchronizationContext)
     {
         _uiThreadSynchronizationContext.Post(delegate { OnStatusChanged(status, message, result); }, null);
     }
     else
     {
         result.Status = status;
         result.ProgressMessage = string.IsNullOrEmpty(message) ? "" : message;
         ResultsTable.Items.NotifyItemUpdated(result);
     }
 }
 protected void SetStatus(RetrieveStatus status, string message, RetrieveProgressResult result)
 {
     if (result != null && status != result.Status)
     {
         OnStatusChanged(status, message, result);
     }
 }
Ejemplo n.º 18
0
 protected RetrieveCommand()
 {
     _result        = new RetrieveProgressResult();
     _result.Status = RetrieveStatus.Queued;
 }
 private void OnResultUpdated(RetrieveProgressResult result)
 {
     Coordinator.OnResultUpdated(result);
 }
Ejemplo n.º 20
0
 private void OnResultUpdated(RetrieveProgressResult result)
 {
     Coordinator.OnResultUpdated(result);
 }