Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/17 10:30:21 (7 years ago)
Author:
pfleck
Message:

#2845

  • Added an explicit method for StartMarquee.
  • Renamed Add/RemoveOperationProgress methods.
  • Moved progress helpers from MainForm into static Progress methods named Show and Hide.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/EnhancedProgress/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionVariableImpactsView.cs

    r14826 r15477  
    2424using HeuristicLab.Data;
    2525using HeuristicLab.MainForm;
    26 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression;
    2726
    2827namespace HeuristicLab.Problems.DataAnalysis.Views {
     
    8079        || factorVarReplComboBox.SelectedIndex < 0
    8180        || dataPartitionComboBox.SelectedIndex < 0) return;
    82       var mainForm = (MainForm.WindowsForms.MainForm)MainFormManager.MainForm;
    8381      variableImactsArrayView.Caption = Content.Name + " Variable Impacts";
    8482      var replMethod =
     
    9391      Task.Factory.StartNew(() => {
    9492        try {
    95           mainForm.AddOperationProgressToView(this, "Calculating variable impacts for " + Content.Name);
     93          Progress.ShowMarquee(this, "Calculating variable impacts for " + Content.Name);
    9694
    9795          var impacts = RegressionSolutionVariableImpactsCalculator.CalculateImpacts(Content, dataPartition, replMethod, factorReplMethod);
     
    10098          variableImactsArrayView.Content = (DoubleArray)impactArray.AsReadOnly();
    10199        } finally {
    102           mainForm.RemoveOperationProgressFromView(this);
     100          Progress.Hide(this);
    103101        }
    104102      });
Note: See TracChangeset for help on using the changeset viewer.