Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/22/13 11:31:32 (11 years ago)
Author:
ascheibe
Message:

#1042

  • changed Hive views to use MainForm for progress handling
  • removed Cancel timeout
  • setter for ProgressState is now private
  • added Start methods to Progress
  • removed unused methods from RefreshableHiveJobView
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs

    r9893 r9894  
    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       progressView = new ProgressView(this, progress);
    5448    }
    5549
     
    115109
    116110        task.ContinueWith((t) => {
    117           progress.Finish();
     111          MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
    118112          ErrorHandling.ShowErrorDialog("An error occured while deleting the job. ", t.Exception);
    119113        }, TaskContinuationOptions.OnlyOnFaulted);
     
    126120
    127121    private void DeleteHiveJobsAsync(object items) {
    128       progress.Start("Deleting job...");
     122      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Deleting job...");
    129123      foreach (RefreshableJob item in (List<RefreshableJob>)items) {
    130124        Content.Remove(item);
    131125      }
    132       progress.Finish();
     126      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
    133127    }
    134128
     
    222216      if (disposing) {
    223217        if (components != null) components.Dispose();
    224         progressView.Dispose();
    225         progressView = null;
    226218      }
    227219      base.Dispose(disposing);
Note: See TracChangeset for help on using the changeset viewer.