Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/03/13 15:55:36 (11 years ago)
Author:
ascheibe
Message:

#1042 merged r9849, r9851, r9865, r9867, r9868, r9893, r9894, r9895, r9896, r9900, r9901, r9905, r9907 into stable branch

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs

    r9559 r9933  
    3434  [Content(typeof(ItemCollection<RefreshableJob>), false)]
    3535  public partial class RefreshableHiveJobListView : HeuristicLab.Core.Views.ItemCollectionView<RefreshableJob> {
    36     private Progress progress;
    37     private ProgressView progressView;
    38 
    3936    public RefreshableHiveJobListView() {
    4037      InitializeComponent();
     
    4946
    5047      this.itemsListView.ListViewItemSorter = new ListViewItemDateComparer(0, SortOrder.Ascending);
    51 
    52       progress = new Progress() {
    53         CanBeCanceled = false,
    54         ProgressState = ProgressState.Finished
    55       };
    56       progressView = new ProgressView(this, progress);
    5748    }
    5849
     
    118109
    119110        task.ContinueWith((t) => {
    120           progress.Finish();
     111          MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
    121112          ErrorHandling.ShowErrorDialog("An error occured while deleting the job. ", t.Exception);
    122113        }, TaskContinuationOptions.OnlyOnFaulted);
     
    129120
    130121    private void DeleteHiveJobsAsync(object items) {
    131       progress.Status = "Deleting job...";
    132       progress.ProgressState = ProgressState.Started;
    133       progress.ProgressValue = 0.0;
     122      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Deleting job...");
    134123      foreach (RefreshableJob item in (List<RefreshableJob>)items) {
    135124        Content.Remove(item);
    136125      }
    137       progress.Finish();
     126      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
    138127    }
    139128
     
    227216      if (disposing) {
    228217        if (components != null) components.Dispose();
    229         progressView.Content = null;
    230         progressView.Dispose();
    231218      }
    232219      base.Dispose(disposing);
Note: See TracChangeset for help on using the changeset viewer.