Ignore:
Timestamp:
08/22/13 11:31:32 (8 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.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs

    r9893 r9894  
    3232  public partial class OptimizerHiveTaskView : HiveTaskView {
    3333    private Progress progress;
    34     private ProgressView progressView;
    35 
     34   
    3635    public new OptimizerHiveTask Content {
    3736      get { return (OptimizerHiveTask)base.Content; }
     
    6160      base.RegisterContentEvents();
    6261      Content.IsControllableChanged += new EventHandler(Content_IsControllableChanged);
    63       progressView = new ProgressView(this, progress);
     62      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, progress);
    6463    }
    6564
    6665    protected override void DeregisterContentEvents() {
    6766      Content.IsControllableChanged -= new EventHandler(Content_IsControllableChanged);
    68       if (progressView != null) {
    69         progressView.Dispose();
    70         progressView = null;
    71       }
     67      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this, false);
    7268      base.DeregisterContentEvents();
    7369    }
Note: See TracChangeset for help on using the changeset viewer.