Changeset 1098 for trunk/sources/HeuristicLab.Hive.Server.Console
- Timestamp:
- 01/08/09 17:07:25 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Console
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.Designer.cs
r1089 r1098 38 38 this.scClientControl = new System.Windows.Forms.SplitContainer(); 39 39 this.tvClientControl = new System.Windows.Forms.TreeView(); 40 this.plClientDetails = new System.Windows.Forms.Panel();41 this.pbClientControl = new System.Windows.Forms.PictureBox();42 40 this.lvClientControl = new System.Windows.Forms.ListView(); 43 41 this.ilClientControl = new System.Windows.Forms.ImageList(this.components); … … 50 48 this.scUserControl = new System.Windows.Forms.SplitContainer(); 51 49 this.tvUserControl = new System.Windows.Forms.TreeView(); 50 this.plUserDetails = new System.Windows.Forms.Panel(); 51 this.lblUserName = new System.Windows.Forms.Label(); 52 this.btnUserControlClose = new System.Windows.Forms.Button(); 53 this.pbUserControl = new System.Windows.Forms.PictureBox(); 52 54 this.lvUserControl = new System.Windows.Forms.ListView(); 53 55 this.ilUserControl = new System.Windows.Forms.ImageList(this.components); 56 this.plJobDetails = new System.Windows.Forms.Panel(); 57 this.lblJobName = new System.Windows.Forms.Label(); 58 this.btnJobDetailClose = new System.Windows.Forms.Button(); 59 this.pbJobControl = new System.Windows.Forms.PictureBox(); 60 this.plClientDetails = new System.Windows.Forms.Panel(); 61 this.lblLogin = new System.Windows.Forms.Label(); 62 this.label1 = new System.Windows.Forms.Label(); 63 this.lblClientName = new System.Windows.Forms.Label(); 64 this.btnClientDetailClose = new System.Windows.Forms.Button(); 65 this.pbClientControl = new System.Windows.Forms.PictureBox(); 54 66 this.treeView2 = new System.Windows.Forms.TreeView(); 55 67 this.listView2 = new System.Windows.Forms.ListView(); 56 68 this.timerSyncronize = new System.Windows.Forms.Timer(this.components); 57 this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);58 this.btnClose = new System.Windows.Forms.Button();59 this.lblClientName = new System.Windows.Forms.Label();60 69 this.menuStrip1.SuspendLayout(); 61 70 this.tcManagementConsole.SuspendLayout(); … … 64 73 this.scClientControl.Panel2.SuspendLayout(); 65 74 this.scClientControl.SuspendLayout(); 66 this.plClientDetails.SuspendLayout();67 ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).BeginInit();68 75 this.tpJobControl.SuspendLayout(); 69 76 this.scJobControl.Panel1.SuspendLayout(); … … 74 81 this.scUserControl.Panel2.SuspendLayout(); 75 82 this.scUserControl.SuspendLayout(); 76 ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); 83 this.plUserDetails.SuspendLayout(); 84 ((System.ComponentModel.ISupportInitialize)(this.pbUserControl)).BeginInit(); 85 this.plJobDetails.SuspendLayout(); 86 ((System.ComponentModel.ISupportInitialize)(this.pbJobControl)).BeginInit(); 87 this.plClientDetails.SuspendLayout(); 88 ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).BeginInit(); 77 89 this.SuspendLayout(); 78 90 // … … 178 190 // scClientControl.Panel2 179 191 // 180 //this.scClientControl.Panel2.Controls.Add(this.plClientDetails);181 192 this.scClientControl.Panel2.Controls.Add(this.lvClientControl); 182 193 this.scClientControl.Size = new System.Drawing.Size(637, 346); … … 191 202 this.tvClientControl.Size = new System.Drawing.Size(139, 346); 192 203 this.tvClientControl.TabIndex = 0; 193 // 194 // plClientDetails 195 // 196 this.plClientDetails.BackColor = System.Drawing.SystemColors.Window; 197 this.plClientDetails.Controls.Add(this.lblClientName); 198 this.plClientDetails.Controls.Add(this.btnClose); 199 this.plClientDetails.Controls.Add(this.pbClientControl); 200 this.plClientDetails.Dock = System.Windows.Forms.DockStyle.Fill; 201 this.plClientDetails.Location = new System.Drawing.Point(0, 0); 202 this.plClientDetails.Name = "plClientDetails"; 203 this.plClientDetails.Size = new System.Drawing.Size(494, 346); 204 this.plClientDetails.TabIndex = 1; 205 // 206 // pbClientControl 207 // 208 this.pbClientControl.Location = new System.Drawing.Point(3, 4); 209 this.pbClientControl.Name = "pbClientControl"; 210 this.pbClientControl.Size = new System.Drawing.Size(60, 50); 211 this.pbClientControl.TabIndex = 0; 212 this.pbClientControl.TabStop = false; 204 this.tvClientControl.Click += new System.EventHandler(this.OnTVClientClicked); 213 205 // 214 206 // lvClientControl … … 219 211 this.lvClientControl.LargeImageList = this.ilClientControl; 220 212 this.lvClientControl.Location = new System.Drawing.Point(0, 0); 213 this.lvClientControl.MultiSelect = false; 221 214 this.lvClientControl.Name = "lvClientControl"; 222 215 this.lvClientControl.Size = new System.Drawing.Size(494, 346); 223 216 this.lvClientControl.TabIndex = 0; 224 217 this.lvClientControl.UseCompatibleStateImageBehavior = false; 225 this.lvClientControl.Click += new System.EventHandler(this.On ClientClicked);218 this.lvClientControl.Click += new System.EventHandler(this.OnLVClientClicked); 226 219 // 227 220 // ilClientControl … … 275 268 this.lvJobControl.LargeImageList = this.ilJobControl; 276 269 this.lvJobControl.Location = new System.Drawing.Point(0, 0); 270 this.lvJobControl.MultiSelect = false; 277 271 this.lvJobControl.Name = "lvJobControl"; 278 272 this.lvJobControl.Size = new System.Drawing.Size(494, 346); 279 273 this.lvJobControl.TabIndex = 0; 280 274 this.lvJobControl.UseCompatibleStateImageBehavior = false; 275 this.lvJobControl.Click += new System.EventHandler(this.OnLVJobControlClicked); 281 276 // 282 277 // ilJobControl … … 322 317 this.tvUserControl.TabIndex = 1; 323 318 // 319 // plUserDetails 320 // 321 this.plUserDetails.BackColor = System.Drawing.SystemColors.Window; 322 this.plUserDetails.Controls.Add(this.lblUserName); 323 this.plUserDetails.Controls.Add(this.btnUserControlClose); 324 this.plUserDetails.Controls.Add(this.pbUserControl); 325 this.plUserDetails.Dock = System.Windows.Forms.DockStyle.Fill; 326 this.plUserDetails.Location = new System.Drawing.Point(0, 0); 327 this.plUserDetails.Name = "plUserDetails"; 328 this.plUserDetails.Size = new System.Drawing.Size(494, 346); 329 this.plUserDetails.TabIndex = 2; 330 // 331 // lblUserName 332 // 333 this.lblUserName.AutoSize = true; 334 this.lblUserName.Location = new System.Drawing.Point(41, 13); 335 this.lblUserName.Name = "lblUserName"; 336 this.lblUserName.Size = new System.Drawing.Size(35, 13); 337 this.lblUserName.TabIndex = 5; 338 this.lblUserName.Text = "label1"; 339 // 340 // btnUserControlClose 341 // 342 this.btnUserControlClose.Location = new System.Drawing.Point(414, 3); 343 this.btnUserControlClose.Name = "btnUserControlClose"; 344 this.btnUserControlClose.Size = new System.Drawing.Size(75, 23); 345 this.btnUserControlClose.TabIndex = 4; 346 this.btnUserControlClose.Text = "Close"; 347 this.btnUserControlClose.UseVisualStyleBackColor = true; 348 this.btnUserControlClose.Click += new System.EventHandler(this.btnUserControlClose_Click); 349 // 350 // pbUserControl 351 // 352 this.pbUserControl.Location = new System.Drawing.Point(3, 3); 353 this.pbUserControl.Name = "pbUserControl"; 354 this.pbUserControl.Size = new System.Drawing.Size(32, 32); 355 this.pbUserControl.TabIndex = 3; 356 this.pbUserControl.TabStop = false; 357 // 324 358 // lvUserControl 325 359 // … … 332 366 this.lvUserControl.TabIndex = 1; 333 367 this.lvUserControl.UseCompatibleStateImageBehavior = false; 368 this.lvUserControl.Click += new System.EventHandler(this.OnLVUserControlClicked); 334 369 // 335 370 // ilUserControl … … 338 373 this.ilUserControl.TransparentColor = System.Drawing.Color.Transparent; 339 374 this.ilUserControl.Images.SetKeyName(0, "Users.png"); 375 // 376 // plJobDetails 377 // 378 this.plJobDetails.BackColor = System.Drawing.SystemColors.Window; 379 this.plJobDetails.Controls.Add(this.lblJobName); 380 this.plJobDetails.Controls.Add(this.btnJobDetailClose); 381 this.plJobDetails.Controls.Add(this.pbJobControl); 382 this.plJobDetails.Dock = System.Windows.Forms.DockStyle.Fill; 383 this.plJobDetails.Location = new System.Drawing.Point(0, 0); 384 this.plJobDetails.Name = "plJobDetails"; 385 this.plJobDetails.Size = new System.Drawing.Size(494, 346); 386 this.plJobDetails.TabIndex = 1; 387 // 388 // lblJobName 389 // 390 this.lblJobName.AutoSize = true; 391 this.lblJobName.Location = new System.Drawing.Point(41, 13); 392 this.lblJobName.Name = "lblJobName"; 393 this.lblJobName.Size = new System.Drawing.Size(35, 13); 394 this.lblJobName.TabIndex = 5; 395 this.lblJobName.Text = "label1"; 396 // 397 // btnJobDetailClose 398 // 399 this.btnJobDetailClose.Location = new System.Drawing.Point(414, 3); 400 this.btnJobDetailClose.Name = "btnJobDetailClose"; 401 this.btnJobDetailClose.Size = new System.Drawing.Size(75, 23); 402 this.btnJobDetailClose.TabIndex = 4; 403 this.btnJobDetailClose.Text = "Close"; 404 this.btnJobDetailClose.UseVisualStyleBackColor = true; 405 this.btnJobDetailClose.Click += new System.EventHandler(this.btnJobDetailClose_Click); 406 // 407 // pbJobControl 408 // 409 this.pbJobControl.Location = new System.Drawing.Point(3, 3); 410 this.pbJobControl.Name = "pbJobControl"; 411 this.pbJobControl.Size = new System.Drawing.Size(32, 32); 412 this.pbJobControl.TabIndex = 3; 413 this.pbJobControl.TabStop = false; 414 // 415 // plClientDetails 416 // 417 this.plClientDetails.BackColor = System.Drawing.SystemColors.Window; 418 this.plClientDetails.Controls.Add(this.lblLogin); 419 this.plClientDetails.Controls.Add(this.label1); 420 this.plClientDetails.Controls.Add(this.lblClientName); 421 this.plClientDetails.Controls.Add(this.btnClientDetailClose); 422 this.plClientDetails.Controls.Add(this.pbClientControl); 423 this.plClientDetails.Dock = System.Windows.Forms.DockStyle.Fill; 424 this.plClientDetails.Location = new System.Drawing.Point(0, 0); 425 this.plClientDetails.Name = "plClientDetails"; 426 this.plClientDetails.Size = new System.Drawing.Size(494, 346); 427 this.plClientDetails.TabIndex = 1; 428 // 429 // lblLogin 430 // 431 this.lblLogin.AutoSize = true; 432 this.lblLogin.Location = new System.Drawing.Point(100, 55); 433 this.lblLogin.Name = "lblLogin"; 434 this.lblLogin.Size = new System.Drawing.Size(35, 13); 435 this.lblLogin.TabIndex = 4; 436 this.lblLogin.Text = "label2"; 437 // 438 // label1 439 // 440 this.label1.AutoSize = true; 441 this.label1.Location = new System.Drawing.Point(29, 55); 442 this.label1.Name = "label1"; 443 this.label1.Size = new System.Drawing.Size(65, 13); 444 this.label1.TabIndex = 3; 445 this.label1.Text = "logged in on"; 446 // 447 // lblClientName 448 // 449 this.lblClientName.AutoSize = true; 450 this.lblClientName.Location = new System.Drawing.Point(41, 14); 451 this.lblClientName.Name = "lblClientName"; 452 this.lblClientName.Size = new System.Drawing.Size(35, 13); 453 this.lblClientName.TabIndex = 2; 454 this.lblClientName.Text = "label1"; 455 // 456 // btnClientDetailClose 457 // 458 this.btnClientDetailClose.Location = new System.Drawing.Point(414, 4); 459 this.btnClientDetailClose.Name = "btnClientDetailClose"; 460 this.btnClientDetailClose.Size = new System.Drawing.Size(75, 23); 461 this.btnClientDetailClose.TabIndex = 1; 462 this.btnClientDetailClose.Text = "Close"; 463 this.btnClientDetailClose.UseVisualStyleBackColor = true; 464 this.btnClientDetailClose.Click += new System.EventHandler(this.btnClientClose_Click); 465 // 466 // pbClientControl 467 // 468 this.pbClientControl.Location = new System.Drawing.Point(3, 4); 469 this.pbClientControl.Name = "pbClientControl"; 470 this.pbClientControl.Size = new System.Drawing.Size(32, 32); 471 this.pbClientControl.TabIndex = 0; 472 this.pbClientControl.TabStop = false; 340 473 // 341 474 // treeView2 … … 360 493 // 361 494 this.timerSyncronize.Interval = 10000; 362 //363 // btnClose364 //365 this.btnClose.Location = new System.Drawing.Point(414, 4);366 this.btnClose.Name = "btnClose";367 this.btnClose.Size = new System.Drawing.Size(75, 23);368 this.btnClose.TabIndex = 1;369 this.btnClose.Text = "Close";370 this.btnClose.UseVisualStyleBackColor = true;371 this.btnClose.Click += new System.EventHandler(this.btnClose_Click);372 //373 // lblClientName374 //375 this.lblClientName.AutoSize = true;376 this.lblClientName.Location = new System.Drawing.Point(79, 19);377 this.lblClientName.Name = "lblClientName";378 this.lblClientName.Size = new System.Drawing.Size(35, 13);379 this.lblClientName.TabIndex = 2;380 this.lblClientName.Text = "label1";381 495 // 382 496 // HiveServerManagementConsole … … 398 512 this.scClientControl.Panel2.ResumeLayout(false); 399 513 this.scClientControl.ResumeLayout(false); 400 this.plClientDetails.ResumeLayout(false);401 this.plClientDetails.PerformLayout();402 ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).EndInit();403 514 this.tpJobControl.ResumeLayout(false); 404 515 this.scJobControl.Panel1.ResumeLayout(false); … … 409 520 this.scUserControl.Panel2.ResumeLayout(false); 410 521 this.scUserControl.ResumeLayout(false); 411 ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); 522 this.plUserDetails.ResumeLayout(false); 523 this.plUserDetails.PerformLayout(); 524 ((System.ComponentModel.ISupportInitialize)(this.pbUserControl)).EndInit(); 525 this.plJobDetails.ResumeLayout(false); 526 this.plJobDetails.PerformLayout(); 527 ((System.ComponentModel.ISupportInitialize)(this.pbJobControl)).EndInit(); 528 this.plClientDetails.ResumeLayout(false); 529 this.plClientDetails.PerformLayout(); 530 ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).EndInit(); 412 531 this.ResumeLayout(false); 413 532 this.PerformLayout(); … … 444 563 private System.Windows.Forms.Timer timerSyncronize; 445 564 private System.Windows.Forms.ImageList ilJobControl; 446 private System.Windows.Forms.BindingSource bindingSource1;447 565 private System.Windows.Forms.Panel plClientDetails; 448 566 private System.Windows.Forms.PictureBox pbClientControl; 449 private System.Windows.Forms.Button btnCl ose;567 private System.Windows.Forms.Button btnClientDetailClose; 450 568 private System.Windows.Forms.Label lblClientName; 569 private System.Windows.Forms.Label label1; 570 private System.Windows.Forms.Label lblLogin; 571 private System.Windows.Forms.Panel plJobDetails; 572 private System.Windows.Forms.Label lblJobName; 573 private System.Windows.Forms.Button btnJobDetailClose; 574 private System.Windows.Forms.PictureBox pbJobControl; 575 private System.Windows.Forms.Panel plUserDetails; 576 private System.Windows.Forms.Label lblUserName; 577 private System.Windows.Forms.Button btnUserControlClose; 578 private System.Windows.Forms.PictureBox pbUserControl; 451 579 } 452 580 } -
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs
r1089 r1098 46 46 ResponseList<User> usersList = null; 47 47 ListView lvClientDetails = null; 48 49 Job currentJob = null; 50 ClientInfo currentClient = null; 51 User currentUser = null; 48 52 49 53 public HiveServerManagementConsole() { … … 92 96 } 93 97 lvClientControl.Groups.Add(lvunsorted); 94 lvClientControl.Sorting = SortOrder.Ascending;95 98 } 96 99 catch (Exception ex) { … … 214 217 } 215 218 216 private void OnClientClicked(object sender, EventArgs e) { 219 private void OnLVClientClicked(object sender, EventArgs e) { 220 currentClient = clientInfo.List[lvClientControl.SelectedItems[0].Index]; 221 ClientClicked(); 222 } 223 224 private void OnTVClientClicked(object sender, EventArgs e) { 225 // currentClient = clientInfo.List[tvClientControl.SelectedNode.Index]; 226 // ClientClicked(); 227 } 228 229 private void ClientClicked() { 217 230 scClientControl.Panel2.Controls.Clear(); 218 231 scClientControl.Panel2.Controls.Add(plClientDetails); 219 232 pbClientControl.Image = ilClientControl.Images[0]; 220 lblClientName.Text = sender.ToString(); 221 222 223 } 224 225 private void btnClose_Click(object sender, EventArgs e) { 233 lblClientName.Text = currentClient.Name; 234 lblLogin.Text = currentClient.Login.ToString(); 235 } 236 237 private void btnClientClose_Click(object sender, EventArgs e) { 226 238 scClientControl.Panel2.Controls.Clear(); 227 239 scClientControl.Panel2.Controls.Add(lvClientControl); 228 240 } 229 241 230 242 private void OnLVJobControlClicked(object sender, EventArgs e) { 243 currentJob = jobs.List[lvJobControl.SelectedItems[0].Index]; 244 JobClicked(); 245 246 } 247 private void JobClicked() { 248 scJobControl.Panel2.Controls.Clear(); 249 scJobControl.Panel2.Controls.Add(plJobDetails); 250 pbJobControl.Image = ilJobControl.Images[0]; 251 lblJobName.Text = currentJob.Id.ToString(); 252 } 253 254 private void btnJobDetailClose_Click(object sender, EventArgs e) { 255 scJobControl.Panel2.Controls.Clear(); 256 scJobControl.Panel2.Controls.Add(lvJobControl); 257 } 258 259 private void OnLVUserControlClicked(object sender, EventArgs e) { 260 currentUser = usersList.List[lvUserControl.SelectedItems[0].Index]; 261 UserClicked(); 262 } 263 264 private void UserClicked() { 265 scUserControl.Panel2.Controls.Clear(); 266 scUserControl.Panel2.Controls.Add(plUserDetails); 267 pbUserControl.Image = ilUserControl.Images[0]; 268 lblUserName.Text = currentUser.Id.ToString(); 269 } 270 271 private void btnUserControlClose_Click(object sender, EventArgs e) { 272 scUserControl.Panel2.Controls.Clear(); 273 scUserControl.Panel2.Controls.Add(lvUserControl); 274 } 231 275 232 276 } -
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.resx
r1089 r1098 349 349 <value>341, 9</value> 350 350 </metadata> 351 <metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">352 <value>580, 13</value>353 </metadata>354 351 </root>
Note: See TracChangeset
for help on using the changeset viewer.