Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/19/17 10:49:02 (7 years ago)
Author:
pfleck
Message:

#1666: Merged into trunk

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms

    • Property svn:mergeinfo set to (toggle deleted branches)
      /branches/SimplifierViewsProgress/HeuristicLab.MainForm.WindowsFormsmergedeligible
      /branches/crossvalidation-2434/HeuristicLab.MainForm.WindowsFormsmergedeligible
      /stable/HeuristicLab.MainForm.WindowsFormsmergedeligible
      /branches/1721-RandomForestPersistence/HeuristicLab.MainForm.WindowsForms10321-10322
      /branches/Algorithms.GradientDescent/HeuristicLab.MainForm.WindowsForms5516-5520
      /branches/Async/HeuristicLab.MainForm.WindowsForms13329-15286
      /branches/Benchmarking/sources/HeuristicLab.MainForm.WindowsForms6917-7005
      /branches/CloningRefactoring/HeuristicLab.MainForm.WindowsForms4656-4721
      /branches/CodeEditor/HeuristicLab.MainForm.WindowsForms11700-11806
      /branches/DataAnalysis Refactoring/HeuristicLab.MainForm.WindowsForms5471-5808
      /branches/DataAnalysis SolutionEnsembles/HeuristicLab.MainForm.WindowsForms5815-6180
      /branches/DataAnalysis/HeuristicLab.MainForm.WindowsForms4458-4459,​4462,​4464
      /branches/DataPreprocessing/HeuristicLab.MainForm.WindowsForms10085-11101
      /branches/GP.Grammar.Editor/HeuristicLab.MainForm.WindowsForms6284-6795
      /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.MainForm.WindowsForms5060
      /branches/HLScript/HeuristicLab.MainForm.WindowsForms10331-10358
      /branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.MainForm.WindowsForms11570-12508
      /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.MainForm.WindowsForms6123-9799
      /branches/HeuristicLab.Problems.Orienteering/HeuristicLab.MainForm.WindowsForms11130-12721
      /branches/HiveStatistics/sources/HeuristicLab.MainForm.WindowsForms12440-12877
      /branches/LogResidualEvaluator/HeuristicLab.MainForm.WindowsForms10202-10483
      /branches/NET40/sources/HeuristicLab.MainForm.WindowsForms5138-5162
      /branches/NSGA-II Changes/HeuristicLab.MainForm.WindowsForms12033-12122
      /branches/ParallelEngine/HeuristicLab.MainForm.WindowsForms5175-5192
      /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.MainForm.WindowsForms7568-7810
      /branches/QAPAlgorithms/HeuristicLab.MainForm.WindowsForms6350-6627
      /branches/Restructure trunk solution/HeuristicLab.MainForm.WindowsForms6828
      /branches/RuntimeOptimizer/HeuristicLab.MainForm.WindowsForms8943-9078
      /branches/ScatterSearch (trunk integration)/HeuristicLab.MainForm.WindowsForms7787-8333
      /branches/SlaveShutdown/HeuristicLab.MainForm.WindowsForms8944-8956
      /branches/SpectralKernelForGaussianProcesses/HeuristicLab.MainForm.WindowsForms10204-10479
      /branches/SuccessProgressAnalysis/HeuristicLab.MainForm.WindowsForms5370-5682
      /branches/Trunk/HeuristicLab.MainForm.WindowsForms6829-6865
      /branches/UnloadJobs/HeuristicLab.MainForm.WindowsForms9168-9215
      /branches/VNS/HeuristicLab.MainForm.WindowsForms5594-5752
      /branches/histogram/HeuristicLab.MainForm.WindowsForms5959-6341
      /branches/symbreg-factors-2650/HeuristicLab.MainForm.WindowsForms14232-14825
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.cs

    r14297 r15371  
    154154        if (content != null) {
    155155          double progressValue = content.ProgressValue;
    156           if (progressValue <= 0.0 || progressValue > 1.0) {
     156          if (progressValue < 0.0 || progressValue > 1.0) {
    157157            progressBar.Style = ProgressBarStyle.Marquee;
    158158          } else {
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs

    r14185 r15371  
    230230    }
    231231
    232     public IContentView ShowContent<T>(T content, bool reuseExistingView, IEqualityComparer<T> comparer = null) where T : class,IContent {
     232    public IContentView ShowContent<T>(T content, bool reuseExistingView, IEqualityComparer<T> comparer = null) where T : class, IContent {
    233233      if (content == null) throw new ArgumentNullException("Content cannot be null.");
    234234      if (!reuseExistingView) return ShowContent(content);
     
    353353    /// Adds a <see cref="ProgressView"/> to the <see cref="ContentView"/>s showing the specified content.
    354354    /// </summary>
    355     public IProgress AddOperationProgressToContent(IContent content, string progressMessage, bool addToObjectGraphObjects = true) {
     355    public IProgress AddOperationProgressToContent(IContent content, string progressMessage, double progressValue = -1, bool addToObjectGraphObjects = true) {
    356356      if (InvokeRequired) {
    357         IProgress result = (IProgress)Invoke((Func<IContent, string, bool, IProgress>)AddOperationProgressToContent, content, progressMessage, addToObjectGraphObjects);
     357        IProgress result = (IProgress)Invoke((Func<IContent, string, double, bool, IProgress>)AddOperationProgressToContent, content, progressMessage, progressValue, addToObjectGraphObjects);
    358358        return result;
    359359      }
     
    371371        contentViews = contentViews.Where(v => v.Content == content);
    372372
    373       var progress = new Progress(progressMessage, ProgressState.Started);
     373      var progress = new Progress();
     374      progress.Start(progressMessage, progressValue);
    374375      foreach (var contentView in contentViews) {
    375376        progressViews.Add(new ProgressView(contentView, progress));
     
    384385    /// </summary>
    385386    public IProgress AddOperationProgressToView(Control control, string progressMessage) {
    386       var progress = new Progress(progressMessage, ProgressState.Started);
     387      var progress = new Progress();
     388      progress.Start(progressMessage);
    387389      AddOperationProgressToView(control, progress);
    388390      return progress;
Note: See TracChangeset for help on using the changeset viewer.