Changeset 9933 for stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
- Timestamp:
- 09/03/13 15:55:36 (11 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9849,9851,9865,9867-9868,9893-9896,9900-9901,9905,9907
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
r9559 r9933 34 34 [Content(typeof(ItemCollection<RefreshableJob>), false)] 35 35 public partial class RefreshableHiveJobListView : HeuristicLab.Core.Views.ItemCollectionView<RefreshableJob> { 36 private Progress progress;37 private ProgressView progressView;38 39 36 public RefreshableHiveJobListView() { 40 37 InitializeComponent(); … … 49 46 50 47 this.itemsListView.ListViewItemSorter = new ListViewItemDateComparer(0, SortOrder.Ascending); 51 52 progress = new Progress() {53 CanBeCanceled = false,54 ProgressState = ProgressState.Finished55 };56 progressView = new ProgressView(this, progress);57 48 } 58 49 … … 118 109 119 110 task.ContinueWith((t) => { 120 progress.Finish();111 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this); 121 112 ErrorHandling.ShowErrorDialog("An error occured while deleting the job. ", t.Exception); 122 113 }, TaskContinuationOptions.OnlyOnFaulted); … … 129 120 130 121 private void DeleteHiveJobsAsync(object items) { 131 progress.Status = "Deleting job..."; 132 progress.ProgressState = ProgressState.Started; 133 progress.ProgressValue = 0.0; 122 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Deleting job..."); 134 123 foreach (RefreshableJob item in (List<RefreshableJob>)items) { 135 124 Content.Remove(item); 136 125 } 137 progress.Finish();126 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this); 138 127 } 139 128 … … 227 216 if (disposing) { 228 217 if (components != null) components.Dispose(); 229 progressView.Content = null;230 progressView.Dispose();231 218 } 232 219 base.Dispose(disposing);
Note: See TracChangeset
for help on using the changeset viewer.