Changeset 6834
- Timestamp:
- 09/26/11 18:26:02 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 11 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
r6792 r6834 52 52 53 53 protected override void removeButton_Click(object sender, EventArgs e) { 54 DialogResult result = MessageBox.Show("This action will permanently delete this experiment (also on the hive server). Continue?", "Delete Experiment", MessageBoxButtons.OKCancel);54 DialogResult result = MessageBox.Show("This action will permanently delete this job (also on the hive server). Continue?", "Delete Job", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); 55 55 if (result == DialogResult.OK) { 56 56 base.removeButton_Click(sender, e); -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.Designer.cs
r6792 r6834 58 58 this.calculatingLabel = new System.Windows.Forms.Label(); 59 59 this.jobsLabel = new System.Windows.Forms.Label(); 60 this.runCollectionViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 60 61 this.tabControl.SuspendLayout(); 61 62 this.tasksTabPage.SuspendLayout(); 62 63 this.permissionTabPage.SuspendLayout(); 64 this.runsTabPage.SuspendLayout(); 63 65 this.stateTabPage.SuspendLayout(); 64 66 this.logTabPage.SuspendLayout(); … … 149 151 // runsTabPage 150 152 // 153 this.runsTabPage.Controls.Add(this.runCollectionViewHost); 151 154 this.runsTabPage.Location = new System.Drawing.Point(4, 22); 152 155 this.runsTabPage.Name = "runsTabPage"; … … 418 421 this.jobsLabel.Text = "Waiting:"; 419 422 // 420 // RefreshableHiveExperimentView 423 // runCollectionViewHost 424 // 425 this.runCollectionViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 426 | System.Windows.Forms.AnchorStyles.Left) 427 | System.Windows.Forms.AnchorStyles.Right))); 428 this.runCollectionViewHost.Caption = "View"; 429 this.runCollectionViewHost.Content = null; 430 this.runCollectionViewHost.Enabled = false; 431 this.runCollectionViewHost.Location = new System.Drawing.Point(3, 3); 432 this.runCollectionViewHost.Name = "runCollectionViewHost"; 433 this.runCollectionViewHost.ReadOnly = false; 434 this.runCollectionViewHost.Size = new System.Drawing.Size(703, 420); 435 this.runCollectionViewHost.TabIndex = 2; 436 this.runCollectionViewHost.ViewsLabelVisible = true; 437 this.runCollectionViewHost.ViewType = null; 438 // 439 // RefreshableHiveJobView 421 440 // 422 441 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); … … 437 456 this.Controls.Add(this.stopButton); 438 457 this.Controls.Add(this.resetButton); 439 this.Name = "RefreshableHive ExperimentView";458 this.Name = "RefreshableHiveJobView"; 440 459 this.Size = new System.Drawing.Size(717, 560); 441 460 this.tabControl.ResumeLayout(false); 442 461 this.tasksTabPage.ResumeLayout(false); 443 462 this.permissionTabPage.ResumeLayout(false); 463 this.runsTabPage.ResumeLayout(false); 444 464 this.stateTabPage.ResumeLayout(false); 445 465 this.logTabPage.ResumeLayout(false); … … 484 504 private System.Windows.Forms.Button refreshPermissionsButton; 485 505 private System.Windows.Forms.TabPage runsTabPage; 506 private MainForm.WindowsForms.ViewHost runCollectionViewHost; 486 507 487 508 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r6792 r6834 63 63 Content.StateLogListChanged += new EventHandler(Content_StateLogListChanged); 64 64 Content.IsProgressingChanged += new EventHandler(Content_IsProgressingChanged); 65 Content.Hive JobsChanged += new EventHandler(Content_HiveJobChanged);65 Content.HiveTasksChanged += new EventHandler(Content_HiveTasksChanged); 66 66 Content.ExecutionStateChanged += new EventHandler(Content_ExecutionStateChanged); 67 67 Content.ExecutionTimeChanged += new EventHandler(Content_ExecutionTimeChanged); 68 68 Content.IsAllowedPrivilegedChanged += new EventHandler(Content_IsAllowedPrivilegedChanged); 69 Content.Loaded += new EventHandler(Content_Loaded); 69 70 } 70 71 … … 77 78 Content.StateLogListChanged -= new EventHandler(Content_StateLogListChanged); 78 79 Content.IsProgressingChanged -= new EventHandler(Content_IsProgressingChanged); 79 Content.Hive JobsChanged -= new EventHandler(Content_HiveJobChanged);80 Content.HiveTasksChanged -= new EventHandler(Content_HiveTasksChanged); 80 81 Content.ExecutionStateChanged -= new EventHandler(Content_ExecutionStateChanged); 81 82 Content.ExecutionTimeChanged -= new EventHandler(Content_ExecutionTimeChanged); 83 Content.Loaded -= new EventHandler(Content_Loaded); 82 84 base.DeregisterContentEvents(); 83 85 } … … 92 94 93 95 private void RegisterHiveJobEvents() { 94 Content.HiveTasks.ItemsAdded += new CollectionItemsChangedEventHandler<HiveTask>(Hive Jobs_ItemsAdded_Removed_Reset);95 Content.HiveTasks.ItemsRemoved += new CollectionItemsChangedEventHandler<HiveTask>(Hive Jobs_ItemsAdded_Removed_Reset);96 Content.HiveTasks.CollectionReset += new CollectionItemsChangedEventHandler<HiveTask>(Hive Jobs_ItemsAdded_Removed_Reset);96 Content.HiveTasks.ItemsAdded += new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsAdded); 97 Content.HiveTasks.ItemsRemoved += new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsRemoved); 98 Content.HiveTasks.CollectionReset += new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_CollectionReset); 97 99 } 98 100 private void DeregisterHiveJobEvents() { 99 Content.HiveTasks.ItemsAdded -= new CollectionItemsChangedEventHandler<HiveTask>(Hive Jobs_ItemsAdded_Removed_Reset);100 Content.HiveTasks.ItemsRemoved -= new CollectionItemsChangedEventHandler<HiveTask>(Hive Jobs_ItemsAdded_Removed_Reset);101 Content.HiveTasks.CollectionReset -= new CollectionItemsChangedEventHandler<HiveTask>(Hive Jobs_ItemsAdded_Removed_Reset);101 Content.HiveTasks.ItemsAdded -= new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsAdded); 102 Content.HiveTasks.ItemsRemoved -= new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsRemoved); 103 Content.HiveTasks.CollectionReset -= new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_CollectionReset); 102 104 } 103 105 … … 112 114 refreshAutomaticallyCheckBox.Checked = false; 113 115 logView.Content = null; 116 runCollectionViewHost.Content = null; 114 117 } else { 115 118 nameTextBox.Text = Content.Job.Name; … … 119 122 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 120 123 logView.Content = Content.Log; 124 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 121 125 } 122 126 hiveExperimentPermissionListView.Content = null; // has to be filled by refresh button 123 127 Content_JobStatisticsChanged(this, EventArgs.Empty); 124 128 Content_HiveExperimentChanged(this, EventArgs.Empty); 125 Content_Hive JobChanged(this, EventArgs.Empty);129 Content_HiveTasksChanged(this, EventArgs.Empty); 126 130 Content_IsProgressingChanged(this, EventArgs.Empty); 127 131 Content_StateLogListChanged(this, EventArgs.Empty); … … 163 167 164 168 #region Content Events 165 private void HiveJobs_ItemsAdded_Removed_Reset(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 166 if (InvokeRequired) 167 Invoke(new CollectionItemsChangedEventHandler<HiveTask>(HiveJobs_ItemsAdded_Removed_Reset), sender, e); 168 else { 169 SetEnabledStateOfControls(); 170 } 171 } 169 private void HiveTasks_ItemsAdded(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 170 if (InvokeRequired) 171 Invoke(new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsAdded), sender, e); 172 else { 173 foreach (HiveTask t in e.Items) { 174 t.TaskStateChanged += new EventHandler(HiveTask_TaskStateChanged); 175 } 176 SetEnabledStateOfControls(); 177 } 178 } 179 180 private void HiveTasks_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 181 if (InvokeRequired) 182 Invoke(new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_ItemsRemoved), sender, e); 183 else { 184 foreach (HiveTask t in e.Items) { 185 t.TaskStateChanged -= new EventHandler(HiveTask_TaskStateChanged); 186 } 187 SetEnabledStateOfControls(); 188 } 189 } 190 191 private void HiveTasks_CollectionReset(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 192 if (InvokeRequired) 193 Invoke(new CollectionItemsChangedEventHandler<HiveTask>(HiveTasks_CollectionReset), sender, e); 194 else { 195 foreach (HiveTask t in e.Items) { 196 t.TaskStateChanged -= new EventHandler(HiveTask_TaskStateChanged); 197 } 198 SetEnabledStateOfControls(); 199 } 200 } 201 202 void HiveTask_TaskStateChanged(object sender, EventArgs e) { 203 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 204 } 205 172 206 private void Content_ExecutionStateChanged(object sender, EventArgs e) { 173 207 if (InvokeRequired) … … 224 258 } 225 259 } 226 private void Content_Hive JobChanged(object sender, EventArgs e) {227 if (InvokeRequired) 228 Invoke(new EventHandler(Content_Hive JobChanged), sender, e);260 private void Content_HiveTasksChanged(object sender, EventArgs e) { 261 if (InvokeRequired) 262 Invoke(new EventHandler(Content_HiveTasksChanged), sender, e); 229 263 else { 230 264 if (Content != null && Content.HiveTasks != null) { … … 236 270 SetEnabledStateOfControls(); 237 271 } 272 } 273 274 void Content_Loaded(object sender, EventArgs e) { 275 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 238 276 } 239 277 … … 419 457 } 420 458 } 459 460 private RunCollection GetAllRunsFromJob(RefreshableJob job) { 461 if (job != null) { 462 RunCollection runs = new RunCollection(); 463 464 foreach (HiveTask subTask in job.HiveTasks) { 465 if (subTask is OptimizerHiveTask) { 466 OptimizerHiveTask ohTask = subTask as OptimizerHiveTask; 467 runs.AddRange(ohTask.ItemTask.Item.Runs); 468 } 469 } 470 return runs; 471 } else { 472 return null; 473 } 474 } 421 475 } 422 476 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.App/3.3/MainWindow.Designer.cs
r6823 r6834 50 50 this.Name = "MainWindow"; 51 51 this.Text = "Hive Slave"; 52 this.SizeChanged += new System.EventHandler(this.MainWindow_SizeChanged); 52 53 this.ResumeLayout(false); 53 54 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.App/3.3/MainWindow.cs
r6823 r6834 36 36 } else { 37 37 Show(); 38 if (WindowState == FormWindowState.Minimized) { 39 WindowState = FormWindowState.Normal; 40 } 38 41 } 39 42 } … … 45 48 } 46 49 } 50 51 private void MainWindow_SizeChanged(object sender, EventArgs e) { 52 if (WindowState == FormWindowState.Minimized) { 53 Hide(); 54 } /*else if (Visible == false) { 55 Show(); 56 } */ 57 } 47 58 } 48 59 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/HeuristicLab.Clients.Hive.Slave.Views-3.3.csproj
r6823 r6834 177 177 <DependentUpon>SlaveStats.cs</DependentUpon> 178 178 </Compile> 179 <Compile Include=" JobsView.cs">180 <SubType>UserControl</SubType> 181 </Compile> 182 <Compile Include=" JobsView.Designer.cs">183 <DependentUpon> JobsView.cs</DependentUpon>179 <Compile Include="TaskView.cs"> 180 <SubType>UserControl</SubType> 181 </Compile> 182 <Compile Include="TaskView.Designer.cs"> 183 <DependentUpon>TaskView.cs</DependentUpon> 184 184 </Compile> 185 185 <Compile Include="LogView.cs"> … … 248 248 <SubType>Designer</SubType> 249 249 </EmbeddedResource> 250 <EmbeddedResource Include=" JobsView.resx">251 <DependentUpon> JobsView.cs</DependentUpon>250 <EmbeddedResource Include="TaskView.resx"> 251 <DependentUpon>TaskView.cs</DependentUpon> 252 252 </EmbeddedResource> 253 253 <EmbeddedResource Include="LogView.resx"> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveStats.Designer.cs
r6823 r6834 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea 7= new System.Windows.Forms.DataVisualization.Charting.ChartArea();48 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 3= new System.Windows.Forms.DataVisualization.Charting.CustomLabel();49 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel 14= new System.Windows.Forms.DataVisualization.Charting.CustomLabel();50 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel 15= new System.Windows.Forms.DataVisualization.Charting.CustomLabel();51 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel 16= new System.Windows.Forms.DataVisualization.Charting.CustomLabel();52 System.Windows.Forms.DataVisualization.Charting.Legend legend 7= new System.Windows.Forms.DataVisualization.Charting.Legend();53 System.Windows.Forms.DataVisualization.Charting.Series series1 9= new System.Windows.Forms.DataVisualization.Charting.Series();54 System.Windows.Forms.DataVisualization.Charting.Series series2 0= new System.Windows.Forms.DataVisualization.Charting.Series();55 System.Windows.Forms.DataVisualization.Charting.Series series 21= new System.Windows.Forms.DataVisualization.Charting.Series();56 System.Windows.Forms.DataVisualization.Charting.Series series 22= new System.Windows.Forms.DataVisualization.Charting.Series();57 System.Windows.Forms.DataVisualization.Charting.Series series 23= new System.Windows.Forms.DataVisualization.Charting.Series();58 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea 8= new System.Windows.Forms.DataVisualization.Charting.ChartArea();59 System.Windows.Forms.DataVisualization.Charting.Legend legend 8= new System.Windows.Forms.DataVisualization.Charting.Legend();60 System.Windows.Forms.DataVisualization.Charting.Series series 24= new System.Windows.Forms.DataVisualization.Charting.Series();61 this. jobChart = new System.Windows.Forms.DataVisualization.Charting.Chart();47 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 48 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); 49 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); 50 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); 51 System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); 52 System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 53 System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); 54 System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); 55 System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); 56 System.Windows.Forms.DataVisualization.Charting.Series series4 = new System.Windows.Forms.DataVisualization.Charting.Series(); 57 System.Windows.Forms.DataVisualization.Charting.Series series5 = new System.Windows.Forms.DataVisualization.Charting.Series(); 58 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 59 System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 60 System.Windows.Forms.DataVisualization.Charting.Series series6 = new System.Windows.Forms.DataVisualization.Charting.Series(); 61 this.taskChart = new System.Windows.Forms.DataVisualization.Charting.Chart(); 62 62 this.coresChart = new System.Windows.Forms.DataVisualization.Charting.Chart(); 63 63 this.label1 = new System.Windows.Forms.Label(); 64 64 this.txtSlaveState = new System.Windows.Forms.TextBox(); 65 ((System.ComponentModel.ISupportInitialize)(this.jobChart)).BeginInit(); 65 this.mainSplitContainer = new System.Windows.Forms.SplitContainer(); 66 this.coresGroupBox = new System.Windows.Forms.GroupBox(); 67 this.groupBoxTaskChart = new System.Windows.Forms.GroupBox(); 68 ((System.ComponentModel.ISupportInitialize)(this.taskChart)).BeginInit(); 66 69 ((System.ComponentModel.ISupportInitialize)(this.coresChart)).BeginInit(); 70 ((System.ComponentModel.ISupportInitialize)(this.mainSplitContainer)).BeginInit(); 71 this.mainSplitContainer.Panel1.SuspendLayout(); 72 this.mainSplitContainer.Panel2.SuspendLayout(); 73 this.mainSplitContainer.SuspendLayout(); 74 this.coresGroupBox.SuspendLayout(); 75 this.groupBoxTaskChart.SuspendLayout(); 67 76 this.SuspendLayout(); 68 77 // 69 // jobChart 70 // 71 this.jobChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 72 | System.Windows.Forms.AnchorStyles.Left) 73 | System.Windows.Forms.AnchorStyles.Right))); 74 this.jobChart.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; 75 customLabel13.Text = "Jobs"; 76 customLabel14.Text = "Aborted Jobs"; 77 customLabel15.Text = "Finished Jobs"; 78 customLabel16.Text = "Fetched Jobs"; 79 chartArea7.AxisX.CustomLabels.Add(customLabel13); 80 chartArea7.AxisX.CustomLabels.Add(customLabel14); 81 chartArea7.AxisX.CustomLabels.Add(customLabel15); 82 chartArea7.AxisX.CustomLabels.Add(customLabel16); 83 chartArea7.AxisX.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True; 84 chartArea7.AxisX.MajorGrid.Enabled = false; 85 chartArea7.AxisX.MajorTickMark.Enabled = false; 86 chartArea7.Name = "ChartArea1"; 87 this.jobChart.ChartAreas.Add(chartArea7); 88 legend7.Name = "Legend1"; 89 this.jobChart.Legends.Add(legend7); 90 this.jobChart.Location = new System.Drawing.Point(3, 121); 91 this.jobChart.Name = "jobChart"; 92 series19.ChartArea = "ChartArea1"; 93 series19.Legend = "Legend1"; 94 series19.Name = "Series1"; 95 series20.ChartArea = "ChartArea1"; 96 series20.Legend = "Legend1"; 97 series20.Name = "Series2"; 98 series21.ChartArea = "ChartArea1"; 99 series21.Legend = "Legend1"; 100 series21.Name = "Series3"; 101 series22.ChartArea = "ChartArea1"; 102 series22.Legend = "Legend1"; 103 series22.Name = "Series4"; 104 series23.ChartArea = "ChartArea1"; 105 series23.Legend = "Legend1"; 106 series23.Name = "Series5"; 107 this.jobChart.Series.Add(series19); 108 this.jobChart.Series.Add(series20); 109 this.jobChart.Series.Add(series21); 110 this.jobChart.Series.Add(series22); 111 this.jobChart.Series.Add(series23); 112 this.jobChart.Size = new System.Drawing.Size(412, 189); 113 this.jobChart.TabIndex = 7; 78 // taskChart 79 // 80 this.taskChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 81 | System.Windows.Forms.AnchorStyles.Left) 82 | System.Windows.Forms.AnchorStyles.Right))); 83 customLabel1.Text = "Jobs"; 84 customLabel2.Text = "Aborted Jobs"; 85 customLabel3.Text = "Finished Jobs"; 86 customLabel4.Text = "Fetched Jobs"; 87 chartArea1.AxisX.CustomLabels.Add(customLabel1); 88 chartArea1.AxisX.CustomLabels.Add(customLabel2); 89 chartArea1.AxisX.CustomLabels.Add(customLabel3); 90 chartArea1.AxisX.CustomLabels.Add(customLabel4); 91 chartArea1.AxisX.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True; 92 chartArea1.AxisX.MajorGrid.Enabled = false; 93 chartArea1.AxisX.MajorTickMark.Enabled = false; 94 chartArea1.AxisY.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True; 95 chartArea1.AxisY.Title = "Number of..."; 96 chartArea1.InnerPlotPosition.Auto = false; 97 chartArea1.InnerPlotPosition.Height = 97F; 98 chartArea1.InnerPlotPosition.Width = 97F; 99 chartArea1.InnerPlotPosition.X = 3F; 100 chartArea1.InnerPlotPosition.Y = 3F; 101 chartArea1.Name = "ChartArea1"; 102 this.taskChart.ChartAreas.Add(chartArea1); 103 legend1.Name = "Legend1"; 104 this.taskChart.Legends.Add(legend1); 105 this.taskChart.Location = new System.Drawing.Point(6, 19); 106 this.taskChart.Name = "taskChart"; 107 series1.ChartArea = "ChartArea1"; 108 series1.Legend = "Legend1"; 109 series1.Name = "Series1"; 110 series2.ChartArea = "ChartArea1"; 111 series2.Legend = "Legend1"; 112 series2.Name = "Series2"; 113 series3.ChartArea = "ChartArea1"; 114 series3.Legend = "Legend1"; 115 series3.Name = "Series3"; 116 series4.ChartArea = "ChartArea1"; 117 series4.Legend = "Legend1"; 118 series4.Name = "Series4"; 119 series5.ChartArea = "ChartArea1"; 120 series5.Legend = "Legend1"; 121 series5.Name = "Series5"; 122 this.taskChart.Series.Add(series1); 123 this.taskChart.Series.Add(series2); 124 this.taskChart.Series.Add(series3); 125 this.taskChart.Series.Add(series4); 126 this.taskChart.Series.Add(series5); 127 this.taskChart.Size = new System.Drawing.Size(406, 178); 128 this.taskChart.TabIndex = 7; 114 129 // 115 130 // coresChart 116 131 // 117 this.coresChart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 118 chartArea8.Name = "ChartArea1"; 119 this.coresChart.ChartAreas.Add(chartArea8); 120 legend8.Name = "Legend1"; 121 this.coresChart.Legends.Add(legend8); 122 this.coresChart.Location = new System.Drawing.Point(186, 3); 132 this.coresChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 133 | System.Windows.Forms.AnchorStyles.Left) 134 | System.Windows.Forms.AnchorStyles.Right))); 135 chartArea2.Name = "ChartArea1"; 136 this.coresChart.ChartAreas.Add(chartArea2); 137 legend2.Name = "Legend1"; 138 this.coresChart.Legends.Add(legend2); 139 this.coresChart.Location = new System.Drawing.Point(6, 19); 123 140 this.coresChart.Name = "coresChart"; 124 series 24.ChartArea = "ChartArea1";125 series 24.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie;126 series 24.Legend = "Legend1";127 series 24.Name = "Series1";128 this.coresChart.Series.Add(series 24);129 this.coresChart.Size = new System.Drawing.Size( 229, 80);141 series6.ChartArea = "ChartArea1"; 142 series6.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie; 143 series6.Legend = "Legend1"; 144 series6.Name = "Series1"; 145 this.coresChart.Series.Add(series6); 146 this.coresChart.Size = new System.Drawing.Size(187, 72); 130 147 this.coresChart.TabIndex = 9; 131 148 // … … 133 150 // 134 151 this.label1.AutoSize = true; 135 this.label1.Location = new System.Drawing.Point( 7, 5);152 this.label1.Location = new System.Drawing.Point(5, 6); 136 153 this.label1.Name = "label1"; 137 154 this.label1.Size = new System.Drawing.Size(65, 13); … … 142 159 // 143 160 this.txtSlaveState.Enabled = false; 144 this.txtSlaveState.Location = new System.Drawing.Point(7 8, 2);161 this.txtSlaveState.Location = new System.Drawing.Point(76, 3); 145 162 this.txtSlaveState.Name = "txtSlaveState"; 146 163 this.txtSlaveState.Size = new System.Drawing.Size(100, 20); 147 164 this.txtSlaveState.TabIndex = 15; 148 165 // 166 // mainSplitContainer 167 // 168 this.mainSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 169 | System.Windows.Forms.AnchorStyles.Left) 170 | System.Windows.Forms.AnchorStyles.Right))); 171 this.mainSplitContainer.Location = new System.Drawing.Point(3, 3); 172 this.mainSplitContainer.Name = "mainSplitContainer"; 173 this.mainSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; 174 // 175 // mainSplitContainer.Panel1 176 // 177 this.mainSplitContainer.Panel1.Controls.Add(this.coresGroupBox); 178 this.mainSplitContainer.Panel1.Controls.Add(this.txtSlaveState); 179 this.mainSplitContainer.Panel1.Controls.Add(this.label1); 180 // 181 // mainSplitContainer.Panel2 182 // 183 this.mainSplitContainer.Panel2.Controls.Add(this.groupBoxTaskChart); 184 this.mainSplitContainer.Size = new System.Drawing.Size(424, 319); 185 this.mainSplitContainer.SplitterDistance = 106; 186 this.mainSplitContainer.TabIndex = 16; 187 // 188 // coresGroupBox 189 // 190 this.coresGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 191 | System.Windows.Forms.AnchorStyles.Right))); 192 this.coresGroupBox.Controls.Add(this.coresChart); 193 this.coresGroupBox.Location = new System.Drawing.Point(216, 6); 194 this.coresGroupBox.Name = "coresGroupBox"; 195 this.coresGroupBox.Size = new System.Drawing.Size(199, 97); 196 this.coresGroupBox.TabIndex = 0; 197 this.coresGroupBox.TabStop = false; 198 this.coresGroupBox.Text = "Cores"; 199 // 200 // groupBoxTaskChart 201 // 202 this.groupBoxTaskChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 203 | System.Windows.Forms.AnchorStyles.Left) 204 | System.Windows.Forms.AnchorStyles.Right))); 205 this.groupBoxTaskChart.Controls.Add(this.taskChart); 206 this.groupBoxTaskChart.Location = new System.Drawing.Point(3, 3); 207 this.groupBoxTaskChart.Name = "groupBoxTaskChart"; 208 this.groupBoxTaskChart.Size = new System.Drawing.Size(418, 203); 209 this.groupBoxTaskChart.TabIndex = 0; 210 this.groupBoxTaskChart.TabStop = false; 211 this.groupBoxTaskChart.Text = "Tasks"; 212 // 149 213 // SlaveStats 150 214 // 151 215 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 152 216 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 153 this.Controls.Add(this.txtSlaveState); 154 this.Controls.Add(this.label1); 155 this.Controls.Add(this.coresChart); 156 this.Controls.Add(this.jobChart); 217 this.Controls.Add(this.mainSplitContainer); 157 218 this.Name = "SlaveStats"; 158 this.Size = new System.Drawing.Size(4 18, 313);159 ((System.ComponentModel.ISupportInitialize)(this. jobChart)).EndInit();219 this.Size = new System.Drawing.Size(430, 325); 220 ((System.ComponentModel.ISupportInitialize)(this.taskChart)).EndInit(); 160 221 ((System.ComponentModel.ISupportInitialize)(this.coresChart)).EndInit(); 222 this.mainSplitContainer.Panel1.ResumeLayout(false); 223 this.mainSplitContainer.Panel1.PerformLayout(); 224 this.mainSplitContainer.Panel2.ResumeLayout(false); 225 ((System.ComponentModel.ISupportInitialize)(this.mainSplitContainer)).EndInit(); 226 this.mainSplitContainer.ResumeLayout(false); 227 this.coresGroupBox.ResumeLayout(false); 228 this.groupBoxTaskChart.ResumeLayout(false); 161 229 this.ResumeLayout(false); 162 this.PerformLayout();163 230 164 231 } … … 166 233 #endregion 167 234 168 private System.Windows.Forms.DataVisualization.Charting.Chart jobChart;235 private System.Windows.Forms.DataVisualization.Charting.Chart taskChart; 169 236 private System.Windows.Forms.DataVisualization.Charting.Chart coresChart; 170 237 private System.Windows.Forms.Label label1; 171 238 private System.Windows.Forms.TextBox txtSlaveState; 239 private System.Windows.Forms.SplitContainer mainSplitContainer; 240 private System.Windows.Forms.GroupBox groupBoxTaskChart; 241 private System.Windows.Forms.GroupBox coresGroupBox; 172 242 } 173 243 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveStats.cs
r6823 r6834 101 101 Invoke(new Action<StatusCommons>(RenderJobChart), status); 102 102 } else { 103 jobChart.Series[0].Points.Clear();104 jobChart.Series[1].Points.Clear();105 jobChart.Series[2].Points.Clear();106 jobChart.Series[3].Points.Clear();107 jobChart.Series[4].Points.Clear();103 taskChart.Series[0].Points.Clear(); 104 taskChart.Series[1].Points.Clear(); 105 taskChart.Series[2].Points.Clear(); 106 taskChart.Series[3].Points.Clear(); 107 taskChart.Series[4].Points.Clear(); 108 108 109 109 … … 114 114 DataPoint pJobsFailed = new DataPoint(5, status.JobsFailed); 115 115 116 pJobs.LegendText = "Current jobs: " + status.Jobs.Count;116 pJobs.LegendText = "Current tasks: " + status.Jobs.Count; 117 117 pJobs.Color = System.Drawing.Color.Yellow; 118 118 pJobs.ToolTip = pJobs.LegendText; 119 jobChart.Series[0].Color = System.Drawing.Color.Yellow;120 jobChart.Series[0].LegendText = pJobs.LegendText;121 jobChart.Series[0].Points.Add(pJobs);119 taskChart.Series[0].Color = System.Drawing.Color.Yellow; 120 taskChart.Series[0].LegendText = pJobs.LegendText; 121 taskChart.Series[0].Points.Add(pJobs); 122 122 123 pJobsAborted.LegendText = "Aborted jobs: " + status.JobsAborted;123 pJobsAborted.LegendText = "Aborted tasks: " + status.JobsAborted; 124 124 pJobsAborted.Color = System.Drawing.Color.Orange; 125 125 pJobsAborted.ToolTip = pJobsAborted.LegendText; 126 jobChart.Series[1].Color = System.Drawing.Color.Orange;127 jobChart.Series[1].LegendText = pJobsAborted.LegendText;128 jobChart.Series[1].Points.Add(pJobsAborted);126 taskChart.Series[1].Color = System.Drawing.Color.Orange; 127 taskChart.Series[1].LegendText = pJobsAborted.LegendText; 128 taskChart.Series[1].Points.Add(pJobsAborted); 129 129 130 pJobsDone.LegendText = "Finished jobs: " + status.JobsFinished;130 pJobsDone.LegendText = "Finished tasks: " + status.JobsFinished; 131 131 pJobsDone.Color = System.Drawing.Color.Green; 132 132 pJobsDone.ToolTip = pJobsDone.LegendText; 133 jobChart.Series[2].Color = System.Drawing.Color.Green;134 jobChart.Series[2].LegendText = pJobsDone.LegendText;135 jobChart.Series[2].Points.Add(pJobsDone);133 taskChart.Series[2].Color = System.Drawing.Color.Green; 134 taskChart.Series[2].LegendText = pJobsDone.LegendText; 135 taskChart.Series[2].Points.Add(pJobsDone); 136 136 137 pJobsFetched.LegendText = "Fetched jobs: " + status.JobsFetched;137 pJobsFetched.LegendText = "Fetched tasks: " + status.JobsFetched; 138 138 pJobsFetched.ToolTip = pJobsFetched.LegendText; 139 139 pJobsFetched.Color = System.Drawing.Color.Blue; 140 jobChart.Series[3].Color = System.Drawing.Color.Blue;141 jobChart.Series[3].LegendText = pJobsFetched.LegendText;142 jobChart.Series[3].Points.Add(pJobsFetched);140 taskChart.Series[3].Color = System.Drawing.Color.Blue; 141 taskChart.Series[3].LegendText = pJobsFetched.LegendText; 142 taskChart.Series[3].Points.Add(pJobsFetched); 143 143 144 pJobsFailed.LegendText = "Failed jobs: " + status.JobsFailed;144 pJobsFailed.LegendText = "Failed tasks: " + status.JobsFailed; 145 145 pJobsFailed.ToolTip = pJobsFailed.LegendText; 146 146 pJobsFailed.Color = System.Drawing.Color.Red; 147 jobChart.Series[4].Color = System.Drawing.Color.Red;148 jobChart.Series[4].LegendText = pJobsFailed.LegendText;149 jobChart.Series[4].Points.Add(pJobsFailed);147 taskChart.Series[4].Color = System.Drawing.Color.Red; 148 taskChart.Series[4].LegendText = pJobsFailed.LegendText; 149 taskChart.Series[4].Points.Add(pJobsFailed); 150 150 } 151 151 } … … 161 161 coresChart.Series[0].Points.Clear(); 162 162 163 pFreeCores.LegendText = "Free cores: " + statusCommons.FreeCores;163 pFreeCores.LegendText = "Free: " + statusCommons.FreeCores; 164 164 pFreeCores.Color = System.Drawing.Color.Green; 165 pUsedCores.LegendText = "Used cores: " + usedCores;165 pUsedCores.LegendText = "Used: " + usedCores; 166 166 pUsedCores.Color = System.Drawing.Color.Red; 167 167 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveView.Designer.cs
r6823 r6834 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.splitContainer = new System.Windows.Forms.SplitContainer(); 47 48 this.slaveStats = new HeuristicLab.Clients.Hive.SlaveCore.Views.SlaveStats(); 48 this.splitContainer = new System.Windows.Forms.SplitContainer(); 49 this.jobsView = new HeuristicLab.Clients.Hive.SlaveCore.Views.JobsView(); 49 this.jobsView = new HeuristicLab.Clients.Hive.SlaveCore.Views.TaskView(); 50 50 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 51 51 this.splitContainer.Panel1.SuspendLayout(); … … 53 53 this.splitContainer.SuspendLayout(); 54 54 this.SuspendLayout(); 55 //56 // slaveStats57 //58 this.slaveStats.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)59 | System.Windows.Forms.AnchorStyles.Left)60 | System.Windows.Forms.AnchorStyles.Right)));61 this.slaveStats.Caption = "HeuristicLab Slave View";62 this.slaveStats.Content = null;63 this.slaveStats.Location = new System.Drawing.Point(3, 3);64 this.slaveStats.Name = "slaveStats";65 this.slaveStats.ReadOnly = false;66 this.slaveStats.Size = new System.Drawing.Size(508, 194);67 this.slaveStats.TabIndex = 0;68 55 // 69 56 // splitContainer … … 86 73 this.splitContainer.SplitterDistance = 200; 87 74 this.splitContainer.TabIndex = 2; 75 // 76 // slaveStats 77 // 78 this.slaveStats.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 79 | System.Windows.Forms.AnchorStyles.Left) 80 | System.Windows.Forms.AnchorStyles.Right))); 81 this.slaveStats.Caption = "HeuristicLab Slave View"; 82 this.slaveStats.Content = null; 83 this.slaveStats.Location = new System.Drawing.Point(3, 3); 84 this.slaveStats.Name = "slaveStats"; 85 this.slaveStats.ReadOnly = false; 86 this.slaveStats.Size = new System.Drawing.Size(508, 194); 87 this.slaveStats.TabIndex = 0; 88 88 // 89 89 // jobsView … … 119 119 private SlaveStats slaveStats; 120 120 private System.Windows.Forms.SplitContainer splitContainer; 121 private JobsView jobsView;121 private TaskView jobsView; 122 122 123 123 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/TaskView.Designer.cs
r6823 r6834 21 21 22 22 namespace HeuristicLab.Clients.Hive.SlaveCore.Views { 23 partial class JobsView {23 partial class TaskView { 24 24 /// <summary> 25 25 /// Required designer variable. … … 46 46 private void InitializeComponent() { 47 47 this.lstJobs = new System.Windows.Forms.ListView(); 48 this.column JobId = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));48 this.columnTaskId = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); 49 49 this.columnExecutionTime = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); 50 50 this.SuspendLayout(); … … 56 56 | System.Windows.Forms.AnchorStyles.Right))); 57 57 this.lstJobs.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 58 this.column JobId,58 this.columnTaskId, 59 59 this.columnExecutionTime}); 60 60 this.lstJobs.Location = new System.Drawing.Point(3, 3); … … 65 65 this.lstJobs.View = System.Windows.Forms.View.Details; 66 66 // 67 // column JobId67 // columnTaskId 68 68 // 69 this.column JobId.Text = "JobId";70 this.column JobId.Width = 120;69 this.columnTaskId.Text = "Task Id"; 70 this.columnTaskId.Width = 120; 71 71 // 72 72 // columnExecutionTime … … 89 89 90 90 private System.Windows.Forms.ListView lstJobs; 91 private System.Windows.Forms.ColumnHeader column JobId;91 private System.Windows.Forms.ColumnHeader columnTaskId; 92 92 private System.Windows.Forms.ColumnHeader columnExecutionTime; 93 93 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/TaskView.cs
r6822 r6834 28 28 [View("Jobs View")] 29 29 [Content(typeof(SlaveItem), IsDefaultView = false)] 30 public partial class JobsView : ItemView {30 public partial class TaskView : ItemView { 31 31 public new SlaveItem Content { 32 32 get { return (SlaveItem)base.Content; } … … 34 34 } 35 35 36 public JobsView() {36 public TaskView() { 37 37 InitializeComponent(); 38 38 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.cs
r6382 r6834 219 219 if (e.Button == System.Windows.Forms.MouseButtons.Left) { 220 220 // enables deselection of treeNodes 221 if (treeView.SelectedNode == null) 221 if (treeView.SelectedNode == null) { 222 222 return; 223 } 224 detailsViewHost.Content = null; 223 225 treeView.SelectedNode = null; 224 226 SetEnabledStateOfControls(); -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs
r6743 r6834 63 63 hiveTasks = value; 64 64 if (hiveTasks != null) RegisterHiveJobsEvents(); 65 OnHive JobsChanged();65 OnHiveTasksChanged(); 66 66 } 67 67 } … … 324 324 return null; 325 325 } 326 326 327 private void UpdateStatistics() { 327 328 var jobs = this.GetAllHiveTasks(); … … 350 351 #endregion 351 352 352 #region TaskEvents353 #region Job Events 353 354 private void RegisterJobEvents() { 354 355 job.ToStringChanged += new EventHandler(OnToStringChanged); … … 470 471 #region HiveTasks Events 471 472 private void RegisterHiveJobsEvents() { 472 this.hiveTasks.ItemsAdded += new CollectionItemsChangedEventHandler<HiveTask>(hive Jobs_ItemsAdded);473 this.hiveTasks.ItemsRemoved += new CollectionItemsChangedEventHandler<HiveTask>(hive Jobs_ItemsRemoved);474 this.hiveTasks.CollectionReset += new CollectionItemsChangedEventHandler<HiveTask>(hive Jobs_CollectionReset);473 this.hiveTasks.ItemsAdded += new CollectionItemsChangedEventHandler<HiveTask>(hivetasks_ItemsAdded); 474 this.hiveTasks.ItemsRemoved += new CollectionItemsChangedEventHandler<HiveTask>(hiveTasks_ItemsRemoved); 475 this.hiveTasks.CollectionReset += new CollectionItemsChangedEventHandler<HiveTask>(hiveTasks_CollectionReset); 475 476 } 476 477 477 478 private void DeregisterHiveJobsEvents() { 478 this.hiveTasks.ItemsAdded -= new CollectionItemsChangedEventHandler<HiveTask>(hive Jobs_ItemsAdded);479 this.hiveTasks.ItemsRemoved -= new CollectionItemsChangedEventHandler<HiveTask>(hive Jobs_ItemsRemoved);480 this.hiveTasks.CollectionReset -= new CollectionItemsChangedEventHandler<HiveTask>(hive Jobs_CollectionReset);481 } 482 483 private void hive Jobs_CollectionReset(object sender, CollectionItemsChangedEventArgs<HiveTask> e) {479 this.hiveTasks.ItemsAdded -= new CollectionItemsChangedEventHandler<HiveTask>(hivetasks_ItemsAdded); 480 this.hiveTasks.ItemsRemoved -= new CollectionItemsChangedEventHandler<HiveTask>(hiveTasks_ItemsRemoved); 481 this.hiveTasks.CollectionReset -= new CollectionItemsChangedEventHandler<HiveTask>(hiveTasks_CollectionReset); 482 } 483 484 private void hiveTasks_CollectionReset(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 484 485 foreach (var item in e.Items) { 485 486 item.StateLogChanged -= new EventHandler(item_StateLogChanged); 486 487 } 487 OnHive JobsReset(e);488 } 489 490 private void hive Jobs_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<HiveTask> e) {488 OnHiveTasksReset(e); 489 } 490 491 private void hiveTasks_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 491 492 foreach (var item in e.Items) { 492 493 item.StateLogChanged -= new EventHandler(item_StateLogChanged); 493 494 } 494 OnHive JobsRemoved(e);495 } 496 497 private void hive Jobs_ItemsAdded(object sender, CollectionItemsChangedEventArgs<HiveTask> e) {495 OnHiveTasksRemoved(e); 496 } 497 498 private void hivetasks_ItemsAdded(object sender, CollectionItemsChangedEventArgs<HiveTask> e) { 498 499 foreach (var item in e.Items) { 499 500 item.StateLogChanged += new EventHandler(item_StateLogChanged); 500 501 item.IsControllable = this.IsControllable; 501 502 } 502 OnHive JobsAdded(e);503 OnHiveTasksAdded(e); 503 504 } 504 505 … … 508 509 #endregion 509 510 510 public event EventHandler Hive JobsChanged;511 protected virtual void OnHive JobsChanged() {511 public event EventHandler HiveTasksChanged; 512 protected virtual void OnHiveTasksChanged() { 512 513 if (jobResultPoller != null && jobResultPoller.IsPolling) { 513 514 jobResultPoller.Stop(); … … 519 520 } 520 521 521 var handler = Hive JobsChanged;522 var handler = HiveTasksChanged; 522 523 if (handler != null) handler(this, EventArgs.Empty); 523 524 } … … 535 536 } 536 537 537 public event EventHandler<CollectionItemsChangedEventArgs<HiveTask>> Hive JobsAdded;538 private void OnHive JobsAdded(CollectionItemsChangedEventArgs<HiveTask> e) {539 var handler = Hive JobsAdded;538 public event EventHandler<CollectionItemsChangedEventArgs<HiveTask>> HiveTasksAdded; 539 private void OnHiveTasksAdded(CollectionItemsChangedEventArgs<HiveTask> e) { 540 var handler = HiveTasksAdded; 540 541 if (handler != null) handler(this, e); 541 542 } 542 543 543 public event EventHandler<CollectionItemsChangedEventArgs<HiveTask>> Hive JobsRemoved;544 private void OnHive JobsRemoved(CollectionItemsChangedEventArgs<HiveTask> e) {545 var handler = Hive JobsRemoved;544 public event EventHandler<CollectionItemsChangedEventArgs<HiveTask>> HiveTasksRemoved; 545 private void OnHiveTasksRemoved(CollectionItemsChangedEventArgs<HiveTask> e) { 546 var handler = HiveTasksRemoved; 546 547 if (handler != null) handler(this, e); 547 548 } 548 549 549 public event EventHandler<CollectionItemsChangedEventArgs<HiveTask>> Hive JobsReset;550 private void OnHive JobsReset(CollectionItemsChangedEventArgs<HiveTask> e) {551 var handler = Hive JobsReset;550 public event EventHandler<CollectionItemsChangedEventArgs<HiveTask>> HiveTasksReset; 551 private void OnHiveTasksReset(CollectionItemsChangedEventArgs<HiveTask> e) { 552 var handler = HiveTasksReset; 552 553 if (handler != null) handler(this, e); 553 554 }
Note: See TracChangeset
for help on using the changeset viewer.