- Timestamp:
- 09/19/17 10:49:02 (7 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.WindowsForms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/SimplifierViewsProgress/HeuristicLab.MainForm.WindowsForms merged eligible /branches/crossvalidation-2434/HeuristicLab.MainForm.WindowsForms merged eligible /stable/HeuristicLab.MainForm.WindowsForms merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.MainForm.WindowsForms 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.MainForm.WindowsForms 5516-5520 /branches/Async/HeuristicLab.MainForm.WindowsForms 13329-15286 /branches/Benchmarking/sources/HeuristicLab.MainForm.WindowsForms 6917-7005 /branches/CloningRefactoring/HeuristicLab.MainForm.WindowsForms 4656-4721 /branches/CodeEditor/HeuristicLab.MainForm.WindowsForms 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.MainForm.WindowsForms 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.MainForm.WindowsForms 5815-6180 /branches/DataAnalysis/HeuristicLab.MainForm.WindowsForms 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.MainForm.WindowsForms 10085-11101 /branches/GP.Grammar.Editor/HeuristicLab.MainForm.WindowsForms 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.MainForm.WindowsForms 5060 /branches/HLScript/HeuristicLab.MainForm.WindowsForms 10331-10358 /branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.MainForm.WindowsForms 11570-12508 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.MainForm.WindowsForms 6123-9799 /branches/HeuristicLab.Problems.Orienteering/HeuristicLab.MainForm.WindowsForms 11130-12721 /branches/HiveStatistics/sources/HeuristicLab.MainForm.WindowsForms 12440-12877 /branches/LogResidualEvaluator/HeuristicLab.MainForm.WindowsForms 10202-10483 /branches/NET40/sources/HeuristicLab.MainForm.WindowsForms 5138-5162 /branches/NSGA-II Changes/HeuristicLab.MainForm.WindowsForms 12033-12122 /branches/ParallelEngine/HeuristicLab.MainForm.WindowsForms 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.MainForm.WindowsForms 7568-7810 /branches/QAPAlgorithms/HeuristicLab.MainForm.WindowsForms 6350-6627 /branches/Restructure trunk solution/HeuristicLab.MainForm.WindowsForms 6828 /branches/RuntimeOptimizer/HeuristicLab.MainForm.WindowsForms 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.MainForm.WindowsForms 7787-8333 /branches/SlaveShutdown/HeuristicLab.MainForm.WindowsForms 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.MainForm.WindowsForms 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.MainForm.WindowsForms 5370-5682 /branches/Trunk/HeuristicLab.MainForm.WindowsForms 6829-6865 /branches/UnloadJobs/HeuristicLab.MainForm.WindowsForms 9168-9215 /branches/VNS/HeuristicLab.MainForm.WindowsForms 5594-5752 /branches/histogram/HeuristicLab.MainForm.WindowsForms 5959-6341 /branches/symbreg-factors-2650/HeuristicLab.MainForm.WindowsForms 14232-14825
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs
r14185 r15371 230 230 } 231 231 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 { 233 233 if (content == null) throw new ArgumentNullException("Content cannot be null."); 234 234 if (!reuseExistingView) return ShowContent(content); … … 353 353 /// Adds a <see cref="ProgressView"/> to the <see cref="ContentView"/>s showing the specified content. 354 354 /// </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) { 356 356 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); 358 358 return result; 359 359 } … … 371 371 contentViews = contentViews.Where(v => v.Content == content); 372 372 373 var progress = new Progress(progressMessage, ProgressState.Started); 373 var progress = new Progress(); 374 progress.Start(progressMessage, progressValue); 374 375 foreach (var contentView in contentViews) { 375 376 progressViews.Add(new ProgressView(contentView, progress)); … … 384 385 /// </summary> 385 386 public IProgress AddOperationProgressToView(Control control, string progressMessage) { 386 var progress = new Progress(progressMessage, ProgressState.Started); 387 var progress = new Progress(); 388 progress.Start(progressMessage); 387 389 AddOperationProgressToView(control, progress); 388 390 return progress;
Note: See TracChangeset
for help on using the changeset viewer.