- Timestamp:
- 08/07/13 13:28:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs
r9849 r9865 351 351 /// Adds a <see cref="ProgressView"/> to the <see cref="ContentView"/>s showing the specified content. 352 352 /// </summary> 353 public void AddOperationProgressToContent(IContent content, IProgress progress, bool addToObjectGraphObjects = true) {353 public void AddOperationProgressToContent(IContent content, string progressMessage, bool addToObjectGraphObjects = true) { 354 354 if (contentProgressLookup.ContainsKey(content)) 355 355 throw new ArgumentException("A progress is already registered for the specified content.", "content"); … … 362 362 contentViews = views.Keys.OfType<IContentView>().Where(v => v.Content == content); 363 363 364 var progress = new Progress(progressMessage); 364 365 foreach (var contentView in contentViews) 365 366 ProgressView.Attach(contentView, progress, true); … … 371 372 /// Adds a <see cref="ProgressView"/> to the specified view. 372 373 /// </summary> 373 public void AddOperationProgressToView(IView view, Progress progress) {374 public void AddOperationProgressToView(IView view, string progressMessage) { 374 375 if (viewProgressLookup.ContainsKey(view)) 375 376 throw new ArgumentException("A progress is already registered for the specified view.", "view"); 376 377 378 var progress = new Progress(progressMessage); 377 379 ProgressView.Attach(view, progress, true); 378 380 viewProgressLookup[view] = progress;
Note: See TracChangeset
for help on using the changeset viewer.