Changeset 12930
- Timestamp:
- 09/02/15 07:50:58 (10 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.HiveEngine.Views/3.3/HiveEngineView.Designer.cs
r6984 r12930 38 38 this.executionTimeLabel = new System.Windows.Forms.Label(); 39 39 this.executionTimeTextBox = new System.Windows.Forms.TextBox(); 40 this.isPrivilegedCheckBox = new System.Windows.Forms.CheckBox();41 40 this.tabControl.SuspendLayout(); 42 41 this.jobsTabPage.SuspendLayout(); … … 55 54 // resourceIdsTextBox 56 55 // 57 this.resourceIdsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 58 | System.Windows.Forms.AnchorStyles.Left)59 56 this.resourceIdsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 57 | System.Windows.Forms.AnchorStyles.Left) 58 | System.Windows.Forms.AnchorStyles.Right))); 60 59 this.resourceIdsTextBox.Location = new System.Drawing.Point(189, 52); 61 60 this.resourceIdsTextBox.Name = "resourceIdsTextBox"; 62 this.resourceIdsTextBox.Size = new System.Drawing.Size( 428, 20);61 this.resourceIdsTextBox.Size = new System.Drawing.Size(517, 20); 63 62 this.resourceIdsTextBox.TabIndex = 4; 64 63 this.resourceIdsTextBox.Text = "HEAL"; … … 94 93 // executionTimeOnHiveTextBox 95 94 // 96 this.executionTimeOnHiveTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 97 | System.Windows.Forms.AnchorStyles.Left)98 95 this.executionTimeOnHiveTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 96 | System.Windows.Forms.AnchorStyles.Left) 97 | System.Windows.Forms.AnchorStyles.Right))); 99 98 this.executionTimeOnHiveTextBox.Location = new System.Drawing.Point(129, 26); 100 99 this.executionTimeOnHiveTextBox.Name = "executionTimeOnHiveTextBox"; … … 105 104 // tabControl 106 105 // 107 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 108 | System.Windows.Forms.AnchorStyles.Left)109 106 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 107 | System.Windows.Forms.AnchorStyles.Left) 108 | System.Windows.Forms.AnchorStyles.Right))); 110 109 this.tabControl.Controls.Add(this.jobsTabPage); 111 110 this.tabControl.Controls.Add(this.logTabPage); … … 135 134 this.hiveExperimentListView.Name = "hiveExperimentListView"; 136 135 this.hiveExperimentListView.ReadOnly = false; 136 this.hiveExperimentListView.ShowDetails = true; 137 137 this.hiveExperimentListView.Size = new System.Drawing.Size(686, 428); 138 138 this.hiveExperimentListView.TabIndex = 0; … … 171 171 // executionTimeTextBox 172 172 // 173 this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 174 | System.Windows.Forms.AnchorStyles.Left)175 173 this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 174 | System.Windows.Forms.AnchorStyles.Left) 175 | System.Windows.Forms.AnchorStyles.Right))); 176 176 this.executionTimeTextBox.Location = new System.Drawing.Point(129, 3); 177 177 this.executionTimeTextBox.Name = "executionTimeTextBox"; … … 180 180 this.executionTimeTextBox.TabIndex = 11; 181 181 // 182 // isPrivilegedCheckBox183 //184 this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));185 this.isPrivilegedCheckBox.AutoSize = true;186 this.isPrivilegedCheckBox.Location = new System.Drawing.Point(623, 54);187 this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox";188 this.isPrivilegedCheckBox.Size = new System.Drawing.Size(80, 17);189 this.isPrivilegedCheckBox.TabIndex = 13;190 this.isPrivilegedCheckBox.Text = "IsPrivileged";191 this.isPrivilegedCheckBox.UseVisualStyleBackColor = true;192 this.isPrivilegedCheckBox.Validated += new System.EventHandler(this.isPrivilegedCheckBox_Validated);193 //194 182 // HiveEngineView 195 183 // 196 184 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 197 185 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 198 this.Controls.Add(this.isPrivilegedCheckBox);199 186 this.Controls.Add(this.executionTimeTextBox); 200 187 this.Controls.Add(this.executionTimeLabel); … … 231 218 private HeuristicLab.Core.Views.LogView logView; 232 219 private RefreshableHiveJobListView hiveExperimentListView; 233 private System.Windows.Forms.CheckBox isPrivilegedCheckBox;234 220 } 235 221 } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.HiveEngine.Views/3.3/HiveEngineView.cs
r6984 r12930 73 73 priorityTextBox.Text = string.Empty; 74 74 executionTimeOnHiveTextBox.Text = string.Empty; 75 isPrivilegedCheckBox.Checked = false;76 75 hiveExperimentListView.Content = null; 77 76 logView.Content = null; … … 80 79 priorityTextBox.Text = Content.Priority.ToString(); 81 80 executionTimeOnHiveTextBox.Text = Content.ExecutionTimeOnHive.ToString(); 82 isPrivilegedCheckBox.Checked = Content.IsPrivileged;83 81 hiveExperimentListView.Content = Content.Jobs; 84 82 logView.Content = Content.Log; … … 92 90 resourceIdsTextBox.ReadOnly = this.ReadOnly; 93 91 priorityTextBox.ReadOnly = this.ReadOnly; 94 isPrivilegedCheckBox.Enabled = Content.IsAllowedPrivileged;95 92 } else { 96 93 resourceIdsTextBox.ReadOnly = false; 97 94 priorityTextBox.ReadOnly = false; 98 isPrivilegedCheckBox.Enabled = false;99 95 } 100 96 } … … 108 104 Content.Priority = int.Parse(priorityTextBox.Text); 109 105 } 110 111 private void isPrivilegedCheckBox_Validated(object sender, EventArgs e) {112 Content.IsPrivileged = isPrivilegedCheckBox.Checked;113 }114 106 #endregion 115 107 } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.HiveEngine/3.3/HiveEngine.cs
r7137 r12930 92 92 } 93 93 94 public bool IsAllowedPrivileged { get; set; }95 96 94 #region constructors and cloning 97 95 public HiveEngine() { … … 99 97 this.Priority = 0; 100 98 this.log = new ThreadSafeLog(); 101 this.IsAllowedPrivileged = HiveServiceLocator.Instance.CallHiveService((s) => s.IsAllowedPrivileged());102 99 } 103 100 … … 288 285 log.LogException(e); 289 286 throw e; 290 } finally { 287 } 288 finally { 291 289 DisposeJob(refreshableJob); 292 290 } … … 299 297 hiveExperiment.DateCreated = DateTime.Now; 300 298 hiveExperiment.ResourceNames = this.ResourceNames; 301 hiveExperiment.IsPrivileged = this.IsPrivileged;302 299 var refreshableHiveExperiment = new RefreshableJob(hiveExperiment); 303 300 refreshableHiveExperiment.IsDownloadable = false; // download happens automatically so disable button
Note: See TracChangeset
for help on using the changeset viewer.