- Timestamp:
- 05/21/12 15:12:15 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.Designer.cs
r7259 r7857 65 65 this.label3 = new System.Windows.Forms.Label(); 66 66 this.txtHbIntervall = new System.Windows.Forms.TextBox(); 67 this.cbxDisposable = new System.Windows.Forms.CheckBox(); 68 this.label4 = new System.Windows.Forms.Label(); 67 69 this.SuspendLayout(); 68 70 // 69 71 // txtSlaveState 70 72 // 71 this.txtSlaveState.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 72 73 this.txtSlaveState.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 74 | System.Windows.Forms.AnchorStyles.Right))); 73 75 this.txtSlaveState.Enabled = false; 74 76 this.txtSlaveState.Location = new System.Drawing.Point(146, 216); … … 79 81 // txtOS 80 82 // 81 this.txtOS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 82 83 this.txtOS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 84 | System.Windows.Forms.AnchorStyles.Right))); 83 85 this.txtOS.Enabled = false; 84 86 this.txtOS.Location = new System.Drawing.Point(146, 190); … … 107 109 // txtDetailsDescription 108 110 // 109 this.txtDetailsDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 110 111 this.txtDetailsDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 112 | System.Windows.Forms.AnchorStyles.Right))); 111 113 this.txtDetailsDescription.Enabled = false; 112 114 this.txtDetailsDescription.Location = new System.Drawing.Point(146, 86); … … 126 128 // txtName 127 129 // 128 this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 129 130 this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 131 | System.Windows.Forms.AnchorStyles.Right))); 130 132 this.txtName.Location = new System.Drawing.Point(146, 8); 131 133 this.txtName.Name = "txtName"; … … 136 138 // txtCPU 137 139 // 138 this.txtCPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 139 140 this.txtCPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 141 | System.Windows.Forms.AnchorStyles.Right))); 140 142 this.txtCPU.Enabled = false; 141 143 this.txtCPU.Location = new System.Drawing.Point(146, 112); … … 146 148 // txtMemory 147 149 // 148 this.txtMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 149 150 this.txtMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 151 | System.Windows.Forms.AnchorStyles.Right))); 150 152 this.txtMemory.Enabled = false; 151 153 this.txtMemory.Location = new System.Drawing.Point(146, 138); … … 156 158 // txtLastHeartbeat 157 159 // 158 this.txtLastHeartbeat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 159 160 this.txtLastHeartbeat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 161 | System.Windows.Forms.AnchorStyles.Right))); 160 162 this.txtLastHeartbeat.Enabled = false; 161 163 this.txtLastHeartbeat.Location = new System.Drawing.Point(146, 242); … … 211 213 // txtFreeMemory 212 214 // 213 this.txtFreeMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 214 215 this.txtFreeMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 216 | System.Windows.Forms.AnchorStyles.Right))); 215 217 this.txtFreeMemory.Enabled = false; 216 218 this.txtFreeMemory.Location = new System.Drawing.Point(146, 164); … … 221 223 // txtId 222 224 // 223 this.txtId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 224 225 this.txtId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 226 | System.Windows.Forms.AnchorStyles.Right))); 225 227 this.txtId.Enabled = false; 226 228 this.txtId.Location = new System.Drawing.Point(146, 60); … … 249 251 // txtHbIntervall 250 252 // 251 this.txtHbIntervall.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 252 253 this.txtHbIntervall.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 254 | System.Windows.Forms.AnchorStyles.Right))); 253 255 this.txtHbIntervall.Location = new System.Drawing.Point(146, 34); 254 256 this.txtHbIntervall.Name = "txtHbIntervall"; … … 257 259 this.txtHbIntervall.TextChanged += new System.EventHandler(this.txtHbIntervall_TextChanged); 258 260 // 261 // cbxDisposable 262 // 263 this.cbxDisposable.AutoSize = true; 264 this.cbxDisposable.Location = new System.Drawing.Point(146, 268); 265 this.cbxDisposable.Name = "cbxDisposable"; 266 this.cbxDisposable.Size = new System.Drawing.Size(15, 14); 267 this.cbxDisposable.TabIndex = 34; 268 this.cbxDisposable.UseVisualStyleBackColor = true; 269 this.cbxDisposable.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); 270 // 271 // label4 272 // 273 this.label4.AutoSize = true; 274 this.label4.Location = new System.Drawing.Point(3, 269); 275 this.label4.Name = "label4"; 276 this.label4.Size = new System.Drawing.Size(62, 13); 277 this.label4.TabIndex = 35; 278 this.label4.Text = "Disposable:"; 279 // 259 280 // SlaveView 260 281 // 261 282 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 262 283 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 284 this.Controls.Add(this.label4); 285 this.Controls.Add(this.cbxDisposable); 263 286 this.Controls.Add(this.txtHbIntervall); 264 287 this.Controls.Add(this.label3); … … 282 305 this.Controls.Add(this.label9); 283 306 this.Name = "SlaveView"; 284 this.Size = new System.Drawing.Size(539, 2 67);307 this.Size = new System.Drawing.Size(539, 285); 285 308 this.ResumeLayout(false); 286 309 this.PerformLayout(); … … 310 333 private System.Windows.Forms.Label label3; 311 334 private System.Windows.Forms.TextBox txtHbIntervall; 335 private System.Windows.Forms.CheckBox cbxDisposable; 336 private System.Windows.Forms.Label label4; 312 337 } 313 338 } -
trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.cs
r7259 r7857 62 62 txtId.Clear(); 63 63 txtHbIntervall.Clear(); 64 cbxDisposable.Checked = false; 64 65 } else { 65 66 if (Content.GetType() == typeof(Slave)) { … … 68 69 txtName.Text = ct.Name; 69 70 txtHbIntervall.Text = ct.HbInterval.ToString(); 71 cbxDisposable.Checked = ct.IsDisposable; 70 72 txtCPU.Text = string.Format("{0} Cores @ {1} Mhz, Arch.: {2}", ct.Cores.ToString(), ct.CpuSpeed.ToString(), ct.CpuArchitecture.ToString()); 71 73 txtDetailsDescription.Text = ct.Description; … … 88 90 89 91 private void ShowSlaveUI(bool show) { 92 label1.Visible = show; 90 93 label2.Visible = show; 91 label 1.Visible = show;94 label4.Visible = show; 92 95 label10.Visible = show; 93 96 label11.Visible = show; … … 105 108 txtId.Visible = show; 106 109 txtName.Enabled = !show; 110 cbxDisposable.Visible = show; 107 111 } 108 112 … … 131 135 } 132 136 } 137 138 private void checkBox1_CheckedChanged(object sender, EventArgs e) { 139 if (Content != null) { 140 ((Slave)Content).IsDisposable = cbxDisposable.Checked; 141 } 142 } 133 143 } 134 144 }
Note: See TracChangeset
for help on using the changeset viewer.