Changeset 973
- Timestamp:
- 12/11/08 16:53:26 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Client.Console
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.Designer.cs ¶
r933 r973 55 55 this.chProgress = new System.Windows.Forms.ColumnHeader(); 56 56 this.gbCommon = new System.Windows.Forms.GroupBox(); 57 this.lbJobsAborted = new System.Windows.Forms.Label(); 58 this.lbJobdone = new System.Windows.Forms.Label(); 59 this.lbJobsFetched = new System.Windows.Forms.Label(); 60 this.lbGuid = new System.Windows.Forms.Label(); 61 this.lbGuidCaption = new System.Windows.Forms.Label(); 62 this.lbCs = new System.Windows.Forms.Label(); 63 this.lbConnectionStatus = new System.Windows.Forms.Label(); 57 64 this.zGJobs = new ZedGraph.ZedGraphControl(); 58 65 this.lbConnectionStatusCaption = new System.Windows.Forms.Label(); 59 66 this.lbJobsAbortedCaption = new System.Windows.Forms.Label(); 60 67 this.lbJobdoneCaption = new System.Windows.Forms.Label(); 61 this.lbGuidCaption = new System.Windows.Forms.Label();62 68 this.lbJobsFetchedCaption = new System.Windows.Forms.Label(); 63 69 this.lbCsCaption = new System.Windows.Forms.Label(); … … 71 77 this.ilEventLog = new System.Windows.Forms.ImageList(this.components); 72 78 this.tabPage2 = new System.Windows.Forms.TabPage(); 73 this.groupBox1 = new System.Windows.Forms.GroupBox(); 74 this.gbResources = new System.Windows.Forms.GroupBox(); 75 this.textBox2 = new System.Windows.Forms.TextBox(); 76 this.lbMem = new System.Windows.Forms.Label(); 79 this.gbOnlineTime = new System.Windows.Forms.GroupBox(); 77 80 this.gbServerConnection = new System.Windows.Forms.GroupBox(); 81 this.lbStatus = new System.Windows.Forms.Label(); 82 this.lbStatusCaption = new System.Windows.Forms.Label(); 78 83 this.btnDisconnect = new System.Windows.Forms.Button(); 79 84 this.btConnect = new System.Windows.Forms.Button(); 80 this.t extBox1= new System.Windows.Forms.TextBox();85 this.tbPort = new System.Windows.Forms.TextBox(); 81 86 this.tbIPAdress = new System.Windows.Forms.TextBox(); 82 87 this.lbServerIPCaption = new System.Windows.Forms.Label(); 83 88 this.lbPortCaption = new System.Windows.Forms.Label(); 89 this.label1 = new System.Windows.Forms.Label(); 84 90 this.tcClientConsole.SuspendLayout(); 85 91 this.tpConnection.SuspendLayout(); … … 88 94 this.gbEventLog.SuspendLayout(); 89 95 this.tabPage2.SuspendLayout(); 90 this.gb Resources.SuspendLayout();96 this.gbOnlineTime.SuspendLayout(); 91 97 this.gbServerConnection.SuspendLayout(); 92 98 this.SuspendLayout(); … … 120 126 // 121 127 this.gbJobCommon.Controls.Add(this.lvJobDetail); 122 this.gbJobCommon.Location = new System.Drawing.Point(8, 1 00);128 this.gbJobCommon.Location = new System.Drawing.Point(8, 152); 123 129 this.gbJobCommon.Name = "gbJobCommon"; 124 this.gbJobCommon.Size = new System.Drawing.Size(412, 1 58);130 this.gbJobCommon.Size = new System.Drawing.Size(412, 106); 125 131 this.gbJobCommon.TabIndex = 13; 126 132 this.gbJobCommon.TabStop = false; … … 137 143 this.lvJobDetail.Location = new System.Drawing.Point(6, 19); 138 144 this.lvJobDetail.Name = "lvJobDetail"; 139 this.lvJobDetail.Size = new System.Drawing.Size(398, 132);145 this.lvJobDetail.Size = new System.Drawing.Size(398, 76); 140 146 this.lvJobDetail.TabIndex = 0; 141 147 this.lvJobDetail.UseCompatibleStateImageBehavior = false; … … 158 164 // gbCommon 159 165 // 166 this.gbCommon.Controls.Add(this.lbJobsAborted); 167 this.gbCommon.Controls.Add(this.lbJobdone); 168 this.gbCommon.Controls.Add(this.lbJobsFetched); 169 this.gbCommon.Controls.Add(this.lbGuid); 170 this.gbCommon.Controls.Add(this.lbGuidCaption); 171 this.gbCommon.Controls.Add(this.lbCs); 172 this.gbCommon.Controls.Add(this.lbConnectionStatus); 160 173 this.gbCommon.Controls.Add(this.zGJobs); 161 174 this.gbCommon.Controls.Add(this.lbConnectionStatusCaption); 162 175 this.gbCommon.Controls.Add(this.lbJobsAbortedCaption); 163 176 this.gbCommon.Controls.Add(this.lbJobdoneCaption); 164 this.gbCommon.Controls.Add(this.lbGuidCaption);165 177 this.gbCommon.Controls.Add(this.lbJobsFetchedCaption); 166 178 this.gbCommon.Controls.Add(this.lbCsCaption); 167 179 this.gbCommon.Location = new System.Drawing.Point(8, 6); 168 180 this.gbCommon.Name = "gbCommon"; 169 this.gbCommon.Size = new System.Drawing.Size(410, 88);181 this.gbCommon.Size = new System.Drawing.Size(410, 133); 170 182 this.gbCommon.TabIndex = 14; 171 183 this.gbCommon.TabStop = false; 172 184 this.gbCommon.Text = "Common"; 173 185 // 186 // lbJobsAborted 187 // 188 this.lbJobsAborted.AutoSize = true; 189 this.lbJobsAborted.Location = new System.Drawing.Point(195, 114); 190 this.lbJobsAborted.Name = "lbJobsAborted"; 191 this.lbJobsAborted.Size = new System.Drawing.Size(54, 13); 192 this.lbJobsAborted.TabIndex = 20; 193 this.lbJobsAborted.Text = "undefined"; 194 // 195 // lbJobdone 196 // 197 this.lbJobdone.AutoSize = true; 198 this.lbJobdone.Location = new System.Drawing.Point(62, 114); 199 this.lbJobdone.Name = "lbJobdone"; 200 this.lbJobdone.Size = new System.Drawing.Size(54, 13); 201 this.lbJobdone.TabIndex = 19; 202 this.lbJobdone.Text = "undefined"; 203 // 204 // lbJobsFetched 205 // 206 this.lbJobsFetched.AutoSize = true; 207 this.lbJobsFetched.Location = new System.Drawing.Point(74, 90); 208 this.lbJobsFetched.Name = "lbJobsFetched"; 209 this.lbJobsFetched.Size = new System.Drawing.Size(54, 13); 210 this.lbJobsFetched.TabIndex = 18; 211 this.lbJobsFetched.Text = "undefined"; 212 // 213 // lbGuid 214 // 215 this.lbGuid.AutoSize = true; 216 this.lbGuid.Location = new System.Drawing.Point(41, 16); 217 this.lbGuid.Name = "lbGuid"; 218 this.lbGuid.Size = new System.Drawing.Size(39, 13); 219 this.lbGuid.TabIndex = 15; 220 this.lbGuid.Text = "not set"; 221 // 222 // lbGuidCaption 223 // 224 this.lbGuidCaption.AutoSize = true; 225 this.lbGuidCaption.Location = new System.Drawing.Point(9, 16); 226 this.lbGuidCaption.Name = "lbGuidCaption"; 227 this.lbGuidCaption.Size = new System.Drawing.Size(37, 13); 228 this.lbGuidCaption.TabIndex = 8; 229 this.lbGuidCaption.Text = "GUID:"; 230 // 231 // lbCs 232 // 233 this.lbCs.AutoSize = true; 234 this.lbCs.Location = new System.Drawing.Point(94, 40); 235 this.lbCs.Name = "lbCs"; 236 this.lbCs.Size = new System.Drawing.Size(54, 13); 237 this.lbCs.TabIndex = 17; 238 this.lbCs.Text = "undefined"; 239 // 240 // lbConnectionStatus 241 // 242 this.lbConnectionStatus.AutoSize = true; 243 this.lbConnectionStatus.Location = new System.Drawing.Point(97, 66); 244 this.lbConnectionStatus.Name = "lbConnectionStatus"; 245 this.lbConnectionStatus.Size = new System.Drawing.Size(54, 13); 246 this.lbConnectionStatus.TabIndex = 16; 247 this.lbConnectionStatus.Text = "undefined"; 248 // 174 249 // zGJobs 175 250 // 176 this.zGJobs.Location = new System.Drawing.Point( 309, 11);251 this.zGJobs.Location = new System.Drawing.Point(277, 16); 177 252 this.zGJobs.Name = "zGJobs"; 178 253 this.zGJobs.ScrollGrace = 0; … … 183 258 this.zGJobs.ScrollMinY = 0; 184 259 this.zGJobs.ScrollMinY2 = 0; 185 this.zGJobs.Size = new System.Drawing.Size( 95, 68);260 this.zGJobs.Size = new System.Drawing.Size(127, 103); 186 261 this.zGJobs.TabIndex = 14; 187 262 // … … 189 264 // 190 265 this.lbConnectionStatusCaption.AutoSize = true; 191 this.lbConnectionStatusCaption.Location = new System.Drawing.Point(9, 42);266 this.lbConnectionStatusCaption.Location = new System.Drawing.Point(9, 66); 192 267 this.lbConnectionStatusCaption.Name = "lbConnectionStatusCaption"; 193 268 this.lbConnectionStatusCaption.Size = new System.Drawing.Size(93, 13); … … 198 273 // 199 274 this.lbJobsAbortedCaption.AutoSize = true; 200 this.lbJobsAbortedCaption.Location = new System.Drawing.Point(1 47, 66);275 this.lbJobsAbortedCaption.Location = new System.Drawing.Point(129, 114); 201 276 this.lbJobsAbortedCaption.Name = "lbJobsAbortedCaption"; 202 277 this.lbJobsAbortedCaption.Size = new System.Drawing.Size(71, 13); … … 207 282 // 208 283 this.lbJobdoneCaption.AutoSize = true; 209 this.lbJobdoneCaption.Location = new System.Drawing.Point( 159, 42);284 this.lbJobdoneCaption.Location = new System.Drawing.Point(9, 114); 210 285 this.lbJobdoneCaption.Name = "lbJobdoneCaption"; 211 286 this.lbJobdoneCaption.Size = new System.Drawing.Size(59, 13); … … 213 288 this.lbJobdoneCaption.Text = "Jobs done:"; 214 289 // 215 // lbGuidCaption216 //217 this.lbGuidCaption.AutoSize = true;218 this.lbGuidCaption.Location = new System.Drawing.Point(9, 19);219 this.lbGuidCaption.Name = "lbGuidCaption";220 this.lbGuidCaption.Size = new System.Drawing.Size(37, 13);221 this.lbGuidCaption.TabIndex = 8;222 this.lbGuidCaption.Text = "GUID:";223 //224 290 // lbJobsFetchedCaption 225 291 // 226 292 this.lbJobsFetchedCaption.AutoSize = true; 227 this.lbJobsFetchedCaption.Location = new System.Drawing.Point( 147, 16);293 this.lbJobsFetchedCaption.Location = new System.Drawing.Point(9, 90); 228 294 this.lbJobsFetchedCaption.Name = "lbJobsFetchedCaption"; 229 295 this.lbJobsFetchedCaption.Size = new System.Drawing.Size(71, 13); … … 234 300 // 235 301 this.lbCsCaption.AutoSize = true; 236 this.lbCsCaption.Location = new System.Drawing.Point(9, 66);302 this.lbCsCaption.Location = new System.Drawing.Point(9, 40); 237 303 this.lbCsCaption.Name = "lbCsCaption"; 238 304 this.lbCsCaption.Size = new System.Drawing.Size(90, 13); … … 304 370 // tabPage2 305 371 // 306 this.tabPage2.Controls.Add(this.groupBox1); 307 this.tabPage2.Controls.Add(this.gbResources); 372 this.tabPage2.Controls.Add(this.gbOnlineTime); 308 373 this.tabPage2.Controls.Add(this.gbServerConnection); 309 374 this.tabPage2.Location = new System.Drawing.Point(4, 22); … … 315 380 this.tabPage2.UseVisualStyleBackColor = true; 316 381 // 317 // groupBox1 318 // 319 this.groupBox1.Location = new System.Drawing.Point(9, 185); 320 this.groupBox1.Name = "groupBox1"; 321 this.groupBox1.Size = new System.Drawing.Size(409, 286); 322 this.groupBox1.TabIndex = 4; 323 this.groupBox1.TabStop = false; 324 this.groupBox1.Text = "Online time"; 325 // 326 // gbResources 327 // 328 this.gbResources.Controls.Add(this.textBox2); 329 this.gbResources.Controls.Add(this.lbMem); 330 this.gbResources.Location = new System.Drawing.Point(8, 118); 331 this.gbResources.Name = "gbResources"; 332 this.gbResources.Size = new System.Drawing.Size(410, 60); 333 this.gbResources.TabIndex = 3; 334 this.gbResources.TabStop = false; 335 this.gbResources.Text = "Resources"; 336 // 337 // textBox2 338 // 339 this.textBox2.Location = new System.Drawing.Point(174, 25); 340 this.textBox2.Name = "textBox2"; 341 this.textBox2.Size = new System.Drawing.Size(72, 20); 342 this.textBox2.TabIndex = 1; 343 // 344 // lbMem 345 // 346 this.lbMem.AutoSize = true; 347 this.lbMem.Location = new System.Drawing.Point(17, 25); 348 this.lbMem.Name = "lbMem"; 349 this.lbMem.Size = new System.Drawing.Size(150, 13); 350 this.lbMem.TabIndex = 0; 351 this.lbMem.Text = "Maximum memory usage [MB]:"; 382 // gbOnlineTime 383 // 384 this.gbOnlineTime.Controls.Add(this.label1); 385 this.gbOnlineTime.Location = new System.Drawing.Point(9, 117); 386 this.gbOnlineTime.Name = "gbOnlineTime"; 387 this.gbOnlineTime.Size = new System.Drawing.Size(409, 354); 388 this.gbOnlineTime.TabIndex = 4; 389 this.gbOnlineTime.TabStop = false; 390 this.gbOnlineTime.Text = "Online time"; 352 391 // 353 392 // gbServerConnection 354 393 // 394 this.gbServerConnection.Controls.Add(this.lbStatus); 395 this.gbServerConnection.Controls.Add(this.lbStatusCaption); 355 396 this.gbServerConnection.Controls.Add(this.btnDisconnect); 356 397 this.gbServerConnection.Controls.Add(this.btConnect); 357 this.gbServerConnection.Controls.Add(this.t extBox1);398 this.gbServerConnection.Controls.Add(this.tbPort); 358 399 this.gbServerConnection.Controls.Add(this.tbIPAdress); 359 400 this.gbServerConnection.Controls.Add(this.lbServerIPCaption); … … 366 407 this.gbServerConnection.Text = "Server connection"; 367 408 // 409 // lbStatus 410 // 411 this.lbStatus.AutoSize = true; 412 this.lbStatus.Location = new System.Drawing.Point(74, 80); 413 this.lbStatus.Name = "lbStatus"; 414 this.lbStatus.Size = new System.Drawing.Size(54, 13); 415 this.lbStatus.TabIndex = 7; 416 this.lbStatus.Text = "undefined"; 417 // 418 // lbStatusCaption 419 // 420 this.lbStatusCaption.AutoSize = true; 421 this.lbStatusCaption.Location = new System.Drawing.Point(17, 80); 422 this.lbStatusCaption.Name = "lbStatusCaption"; 423 this.lbStatusCaption.Size = new System.Drawing.Size(40, 13); 424 this.lbStatusCaption.TabIndex = 6; 425 this.lbStatusCaption.Text = "Status:"; 426 // 368 427 // btnDisconnect 369 428 // … … 374 433 this.btnDisconnect.Text = "Disconnect from server"; 375 434 this.btnDisconnect.UseVisualStyleBackColor = true; 435 this.btnDisconnect.Click += new System.EventHandler(this.btnDisconnect_Click); 376 436 // 377 437 // btConnect … … 383 443 this.btConnect.Text = "Connect to server"; 384 444 this.btConnect.UseVisualStyleBackColor = true; 385 // 386 // textBox1 387 // 388 this.textBox1.Location = new System.Drawing.Point(77, 51); 389 this.textBox1.Name = "textBox1"; 390 this.textBox1.Size = new System.Drawing.Size(143, 20); 391 this.textBox1.TabIndex = 3; 445 this.btConnect.Click += new System.EventHandler(this.btConnect_Click); 446 // 447 // tbPort 448 // 449 this.tbPort.Location = new System.Drawing.Point(77, 51); 450 this.tbPort.Name = "tbPort"; 451 this.tbPort.Size = new System.Drawing.Size(143, 20); 452 this.tbPort.TabIndex = 3; 392 453 // 393 454 // tbIPAdress … … 415 476 this.lbPortCaption.TabIndex = 1; 416 477 this.lbPortCaption.Text = "Port:"; 478 // 479 // label1 480 // 481 this.label1.AutoSize = true; 482 this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 483 this.label1.Location = new System.Drawing.Point(98, 154); 484 this.label1.Name = "label1"; 485 this.label1.Size = new System.Drawing.Size(184, 25); 486 this.label1.TabIndex = 0; 487 this.label1.Text = "comming soon..."; 417 488 // 418 489 // HiveClientConsole … … 433 504 this.gbEventLog.ResumeLayout(false); 434 505 this.tabPage2.ResumeLayout(false); 435 this.gb Resources.ResumeLayout(false);436 this.gb Resources.PerformLayout();506 this.gbOnlineTime.ResumeLayout(false); 507 this.gbOnlineTime.PerformLayout(); 437 508 this.gbServerConnection.ResumeLayout(false); 438 509 this.gbServerConnection.PerformLayout(); … … 464 535 private System.Windows.Forms.ColumnHeader chProgress; 465 536 private System.Windows.Forms.Label lbConnectionStatusCaption; 466 private System.Windows.Forms.GroupBox gbResources;467 537 private System.Windows.Forms.GroupBox gbServerConnection; 468 private System.Windows.Forms.TextBox t extBox1;538 private System.Windows.Forms.TextBox tbPort; 469 539 private System.Windows.Forms.TextBox tbIPAdress; 470 540 private System.Windows.Forms.Label lbServerIPCaption; 471 541 private System.Windows.Forms.Label lbPortCaption; 472 private System.Windows.Forms.Label lbMem; 473 private System.Windows.Forms.GroupBox groupBox1; 474 private System.Windows.Forms.TextBox textBox2; 542 private System.Windows.Forms.GroupBox gbOnlineTime; 475 543 private System.Windows.Forms.Button btnDisconnect; 476 544 private System.Windows.Forms.Button btConnect; … … 478 546 private System.Windows.Forms.ColumnHeader chId; 479 547 private System.Windows.Forms.ImageList ilEventLog; 548 private System.Windows.Forms.Label lbStatus; 549 private System.Windows.Forms.Label lbStatusCaption; 550 private System.Windows.Forms.Label lbCs; 551 private System.Windows.Forms.Label lbConnectionStatus; 552 private System.Windows.Forms.Label lbGuid; 553 private System.Windows.Forms.Label lbJobsFetched; 554 private System.Windows.Forms.Label lbJobdone; 555 private System.Windows.Forms.Label lbJobsAborted; 556 private System.Windows.Forms.Label label1; 480 557 } 481 558 } -
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs ¶
r953 r973 31 31 using System.Threading; 32 32 using ZedGraph; 33 //using HeuristicLab.Hive.Client.Console.ClientWCFService;33 using HeuristicLab.Hive.Client.Console.ClientService; 34 34 using System.ServiceModel; 35 using System.Net; 35 36 36 37 namespace HeuristicLab.Hive.Client.Console { … … 41 42 42 43 EventLog HiveClientEventLog; 43 int selectedEventLogId; 44 ClientConsoleCommunicatorClient cccc; 45 System.Windows.Forms.Timer refreshTimer; 44 46 45 47 public HiveClientConsole() { 46 48 InitializeComponent(); 49 InitTimer(); 50 ConnectToClient(); 51 RefreshGui(); 47 52 GetEventLog(); 48 49 //ClientConsoleCommunicatorClient cccc = new ClientConsoleCommunicatorClient(new NetTcpBinding(), 50 // new EndpointAddress("net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator")); 51 //StatusCommons sc = cccc.GetStatusInfos(); 53 } 54 55 private void InitTimer() { 56 refreshTimer = new System.Windows.Forms.Timer(); 57 refreshTimer.Interval = 1000; 58 refreshTimer.Tick += new EventHandler(refreshTimer_Tick); 59 refreshTimer.Start(); 60 } 61 62 void refreshTimer_Tick(object sender, EventArgs e) { 63 RefreshGui(); 64 } 65 66 private void RefreshGui() { 67 StatusCommons sc = new StatusCommons(); 68 69 try { 70 sc = cccc.GetStatusInfos(); 71 } 72 catch (Exception ex) { 73 refreshTimer.Stop(); 74 DialogResult res = MessageBox.Show("Connection Error, check if Hive Client is running!", "Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 75 if (res == DialogResult.OK) 76 this.Close(); 77 } 78 79 lbGuid.Text = sc.ClientGuid.ToString(); 80 lbCs.Text = sc.ConnectedSince.ToString(); 81 lbConnectionStatus.Text = sc.Status.ToString(); 82 lbJobdone.Text = sc.JobsDone.ToString(); 83 lbJobsAborted.Text = sc.JobsAborted.ToString(); 84 lbJobsFetched.Text = sc.JobsFetched.ToString(); 85 86 this.Text = "Client Console (" + sc.Status.ToString() + ")"; 87 lbStatus.Text = sc.Status.ToString(); 88 89 ListViewItem curJobStatusItem; 90 91 if (sc.Jobs != null) { 92 lvJobDetail.Items.Clear(); 93 double progress; 94 foreach (JobStatus curJob in sc.Jobs) { 95 curJobStatusItem = new ListViewItem(curJob.JobId.ToString()); 96 curJobStatusItem.SubItems.Add(curJob.Since.ToString()); 97 progress = curJob.Progress * 100; 98 curJobStatusItem.SubItems.Add(progress.ToString()); 99 lvJobDetail.Items.Add(curJobStatusItem); 100 } 101 } 102 103 UpdateGraph(zGJobs, sc.JobsDone, sc.JobsAborted); 104 105 if (sc.Status == NetworkEnumWcfConnState.Connected) { 106 btConnect.Enabled = false; 107 btnDisconnect.Enabled = true; 108 ConnectionContainer curConnection = cccc.GetCurrentConnection(); 109 tbIPAdress.Text = curConnection.IPAdress; 110 tbPort.Text = curConnection.Port.ToString(); 111 } else if (sc.Status == NetworkEnumWcfConnState.Disconnected) { 112 btConnect.Enabled = true; 113 btnDisconnect.Enabled = false; 114 } else if (sc.Status == NetworkEnumWcfConnState.Failed) { 115 btConnect.Enabled = true; 116 btnDisconnect.Enabled = false; 117 } 118 } 119 120 private void ConnectToClient() { 121 try { 122 cccc = new ClientConsoleCommunicatorClient(); 123 } 124 catch (Exception) { 125 refreshTimer.Stop(); 126 DialogResult res = MessageBox.Show("Connection Error, check if Hive Client is running!", "Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 127 if (res == DialogResult.OK) 128 this.Close(); 129 } 52 130 } 53 131 … … 72 150 73 151 private void HiveClientConsole_Load(object sender, EventArgs e) { 74 CreateGraph(zGJobs);75 152 //SetSize(); 76 153 } … … 89 166 curEventLogEntry.SubItems.Add(ev.TimeGenerated.Date.ToString()); 90 167 curEventLogEntry.SubItems.Add(ev.TimeGenerated.TimeOfDay.ToString()); 168 lvLog.Items.Add(curEventLogEntry); 91 169 } 92 170 } … … 96 174 } 97 175 98 private void SetSize() { 99 zGJobs.Location = new Point(10, 10); 100 // Leave a small margin around the outside of the control 101 102 zGJobs.Size = new Size(ClientRectangle.Width - 20, 103 ClientRectangle.Height - 20); 104 } 105 106 107 private void CreateGraph(ZedGraphControl zgc) { 176 private void UpdateGraph(ZedGraphControl zgc, int jobsDone, int jobsAborted) { 177 zgc.GraphPane.GraphObjList.Clear(); 108 178 GraphPane myPane = zgc.GraphPane; 109 179 … … 113 183 myPane.Fill.Type = FillType.None; 114 184 115 myPane.AddPieSlice(40, Color.Red, 0, "Jobs aborted"); 116 myPane.AddPieSlice(60, Color.Green, 0.1, "Jobs done"); 117 185 double sum = jobsDone + jobsAborted; 186 double perDone = jobsDone / sum * 100; 187 double perAborted = jobsAborted / sum * 100; 188 189 myPane.AddPieSlice(perAborted, Color.Red, 0, "Jobs aborted"); 190 myPane.AddPieSlice(perDone, Color.Green, 0.1, "Jobs done"); 118 191 myPane.AxisChange(); 119 192 } … … 130 203 EventlogDetails.Show(); 131 204 } 205 206 private void btConnect_Click(object sender, EventArgs e) { 207 IPAddress ipAdress; 208 int port; 209 ConnectionContainer cc = new ConnectionContainer(); 210 //IPAddress.TryParse(tbIPAdress.Text.ToString(), ipAdress); 211 if (IPAddress.TryParse(tbIPAdress.Text, out ipAdress) && int.TryParse(tbPort.Text, out port)) { 212 cc.IPAdress = tbIPAdress.Text; 213 cc.Port = port; 214 cccc.SetConnection(cc); 215 } else { 216 MessageBox.Show("IP Adress and/or Port Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 217 } 218 219 } 220 221 private void btnDisconnect_Click(object sender, EventArgs e) { 222 cccc.Disconnect(); 223 } 132 224 } 133 225 } -
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.resx ¶
r933 r973 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="lvJobDetail.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">121 <value>True</value>122 </metadata>123 120 <metadata name="ilEventLog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 124 121 <value>17, 17</value> … … 130 127 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABS 131 128 CgAAAk1TRnQBSQFMAgEBAgEAAQQBAAEEAQABEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA 132 AwABEAMAAQEBAAEgBgABECoAAUMCAQF0A SgCBAHxAwQB/wFMAgMB1AEgAgEBLCwAAUMCAQF0ASgCBAHx133 Aw QB/wFMAgMB1AEgAgEBLKQAASYCBAHyAZMBXgEEAf8BvwF3AQQB/wG9AXQBBAH/AboBcQEEAf8BuAFu134 AQ QB/wG2AWwBBAH/ATgBIQEEAf8BPQIBAWUcAAEmAgQB8gIEAaQB/wIEAdYB/wIEAdQB/wIEAdIB/wIE135 AdAB/wI EAc4B/wIEAT8B/wE9AgEBZZgAAQ4BCgEEAf8BxwF/AQQB/wHDAXwBBAH/AbEBZgEEAf8BsQFm136 AQ QB/wGxAWYBBAH/AbEBZgEEAf8BswFoAQQB/wG2AWwBBAH/AbQBaQEEAf8BPgIEAeQUAAIEAQ8B/wIE137 AdwB/wI EAdkB/wIEAcoB/wIEAcoB/wIEAcoB/wIEAcoB/wIEAcsB/wIEAc4B/wIEAcwB/wE+AgQB5JAA138 Aw QB/wHLAYEBBAH/AbsBcgEEAf8BtgFsAQQB/wG2AWwBBAH/Ae4B3AHEBf8BvgF9ASEB/wG2AWwBBAH/139 AbYB bAEEAf8BtgFsAQQB/wG0AWkBBAH/AUkCAgGGDAADBAH/AgQB4AH/AgQB0gH/AgQBzgH/AjEB1gH/140 Ag QBzgH/AgQBzgH/AgQBzgH/A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GMAQgB/wHJAYEBCAH/AdEBiAEIAf8BGAIIAfwMAAIIATwB/wIIAe8B/wII 161 Ae0B/wIIAe0B/wIIAe0B/wIIAe0B/wIIAe0B/wIIAe0B/wIIAe0B/wIIAegB/wIIAd4B/wEIARsB4gH/ 162 ARgCCAH8jAABGQIBASEBkAFcAQgB/wHfAZkBCAH/AdsBlAEIAf8B2QGRAQgB/wHYAZABCAH/AdgBkAEI 163 Af8B0wGKAQgB/wHQAYYBCAH/Ac4BgwEIAf8B2gGSAQgB/wETAQ4BCAH/EAABGQIBASECCAGHAf8BCAEO 164 AfEB/wIIAe0B/wIIAewB/wIIAesB/wIIAesB/wIIAeYB/wIIAeQB/wIIAeIB/wEIASUB5gH/AggBEgH/ 165 lAABEgIBARYBLQEfAQgB/wHSAYkBCAH/AeIBnQEIAf8B2QGRAQgB/wHXAY4BCAH/AdUBjAEIAf8B4QGb 166 AQgB/wHOAYQBCAH/ARACCAH+GAABEgIBARYCCAEsAf8BCAEOAdMB/wEIAR8B9AH/AggB7AH/AggB6QH/ 167 AQgBCQHoAf8BCAEnAfAB/wIIAcwB/wEQAggB/qAAAUYCAQF9AwgB/wFZAUABCAH/AXoBWQEIAf8BOgEr 168 AQgB/wEQAggB/gEUAgEBGiQAAUYCAQF9AwgB/wIIAVwB/wIIAYEB/wIIATwB/wEQAggB/gEUAgEBGv8A 172 169 kQABQgFNAT4HAAE+AwABKAMAAUADAAEQAwABAQEAAQEFAAGAFwAD/wEAAfwBHwH8AR8EAAHwAQcB8AEH 173 170 BAAB4AEDAeABAwQAAcABAQHAAQEEAAGAAQEBgAEBBAABgAEAAYAFAAGAAQABgAUAAYABAAGABQABgAEA -
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsoleApplication.cs ¶
r717 r973 27 27 28 28 namespace HeuristicLab.Hive.Client.Console { 29 [ClassInfo(Name = "Hive Client Console", Description = "Console Application for the Hive Client.", AutoRestart = true)]29 [ClassInfo(Name = "Hive Client Console", Description = "Console Application for the Hive Client.", AutoRestart = false)] 30 30 class HiveClientConsoleApplication : ApplicationBase { 31 31 public override void Run() { -
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/Reference.cs ¶
r954 r973 325 325 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse")] 326 326 void Disconnect(); 327 328 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnectionResponse")] 329 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetCurrentConnection(); 327 330 } 328 331 … … 369 372 base.Channel.Disconnect(); 370 373 } 374 375 public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetCurrentConnection() { 376 return base.Channel.GetCurrentConnection(); 377 } 371 378 } 372 379 } -
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/service.wsdl ¶
r954 r973 66 66 <wsdl:part name="parameters" element="tns:DisconnectResponse" /> 67 67 </wsdl:message> 68 <wsdl:message name="IClientConsoleCommunicator_GetCurrentConnection_InputMessage"> 69 <wsdl:part name="parameters" element="tns:GetCurrentConnection" /> 70 </wsdl:message> 71 <wsdl:message name="IClientConsoleCommunicator_GetCurrentConnection_OutputMessage"> 72 <wsdl:part name="parameters" element="tns:GetCurrentConnectionResponse" /> 73 </wsdl:message> 68 74 <wsdl:portType name="IClientConsoleCommunicator"> 69 75 <wsdl:operation name="GetStatusInfos"> … … 82 88 <wsdl:input wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/Disconnect" message="tns:IClientConsoleCommunicator_Disconnect_InputMessage" /> 83 89 <wsdl:output wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse" message="tns:IClientConsoleCommunicator_Disconnect_OutputMessage" /> 90 </wsdl:operation> 91 <wsdl:operation name="GetCurrentConnection"> 92 <wsdl:input wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection" message="tns:IClientConsoleCommunicator_GetCurrentConnection_InputMessage" /> 93 <wsdl:output wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnectionResponse" message="tns:IClientConsoleCommunicator_GetCurrentConnection_OutputMessage" /> 84 94 </wsdl:operation> 85 95 </wsdl:portType> … … 124 134 </wsdl:output> 125 135 </wsdl:operation> 136 <wsdl:operation name="GetCurrentConnection"> 137 <soap12:operation soapAction="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection" style="document" /> 138 <wsdl:input> 139 <soap12:body use="literal" /> 140 </wsdl:input> 141 <wsdl:output> 142 <soap12:body use="literal" /> 143 </wsdl:output> 144 </wsdl:operation> 126 145 </wsdl:binding> 127 146 <wsdl:service name="ClientConsoleCommunicator"> -
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/service.xsd ¶
r954 r973 48 48 </xs:complexType> 49 49 </xs:element> 50 <xs:element name="GetCurrentConnection"> 51 <xs:complexType> 52 <xs:sequence /> 53 </xs:complexType> 54 </xs:element> 55 <xs:element name="GetCurrentConnectionResponse"> 56 <xs:complexType> 57 <xs:sequence> 58 <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConsoleService" minOccurs="0" name="GetCurrentConnectionResult" nillable="true" type="q4:ConnectionContainer" /> 59 </xs:sequence> 60 </xs:complexType> 61 </xs:element> 50 62 </xs:schema>
Note: See TracChangeset
for help on using the changeset viewer.