- Timestamp:
- 12/17/08 14:24:16 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Client.Console
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Console/EventLogEntryForm.Designer.cs
r906 r1002 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.lbMessage = new System.Windows.Forms.ListBox();27 26 this.lbDateLabel = new System.Windows.Forms.Label(); 28 this.lbTimeLabel = new System.Windows.Forms.Label();29 27 this.lbDate = new System.Windows.Forms.Label(); 30 this.lbTime = new System.Windows.Forms.Label();31 28 this.lbId = new System.Windows.Forms.Label(); 32 29 this.lbIdLabel = new System.Windows.Forms.Label(); 30 this.txtMessage = new System.Windows.Forms.TextBox(); 33 31 this.SuspendLayout(); 34 //35 // lbMessage36 //37 this.lbMessage.BackColor = System.Drawing.SystemColors.InactiveBorder;38 this.lbMessage.FormattingEnabled = true;39 this.lbMessage.Location = new System.Drawing.Point(12, 97);40 this.lbMessage.MultiColumn = true;41 this.lbMessage.Name = "lbMessage";42 this.lbMessage.Size = new System.Drawing.Size(254, 160);43 this.lbMessage.TabIndex = 0;44 32 // 45 33 // lbDateLabel 46 34 // 47 35 this.lbDateLabel.AutoSize = true; 48 this.lbDateLabel.Location = new System.Drawing.Point(13, 13);36 this.lbDateLabel.Location = new System.Drawing.Point(13, 27); 49 37 this.lbDateLabel.Name = "lbDateLabel"; 50 this.lbDateLabel.Size = new System.Drawing.Size( 33, 13);38 this.lbDateLabel.Size = new System.Drawing.Size(80, 13); 51 39 this.lbDateLabel.TabIndex = 1; 52 this.lbDateLabel.Text = "Date:"; 53 // 54 // lbTimeLabel 55 // 56 this.lbTimeLabel.AutoSize = true; 57 this.lbTimeLabel.Location = new System.Drawing.Point(13, 37); 58 this.lbTimeLabel.Name = "lbTimeLabel"; 59 this.lbTimeLabel.Size = new System.Drawing.Size(33, 13); 60 this.lbTimeLabel.TabIndex = 2; 61 this.lbTimeLabel.Text = "Time:"; 40 this.lbDateLabel.Text = "Date and Time:"; 62 41 // 63 42 // lbDate 64 43 // 65 44 this.lbDate.AutoSize = true; 66 this.lbDate.Location = new System.Drawing.Point( 52, 13);45 this.lbDate.Location = new System.Drawing.Point(89, 27); 67 46 this.lbDate.Name = "lbDate"; 68 this.lbDate.Size = new System.Drawing.Size( 33, 13);47 this.lbDate.Size = new System.Drawing.Size(23, 13); 69 48 this.lbDate.TabIndex = 3; 70 this.lbDate.Text = "Date:"; 71 // 72 // lbTime 73 // 74 this.lbTime.AutoSize = true; 75 this.lbTime.Location = new System.Drawing.Point(52, 37); 76 this.lbTime.Name = "lbTime"; 77 this.lbTime.Size = new System.Drawing.Size(33, 13); 78 this.lbTime.TabIndex = 4; 79 this.lbTime.Text = "Time:"; 49 this.lbDate.Text = "null"; 80 50 // 81 51 // lbId 82 52 // 83 53 this.lbId.AutoSize = true; 84 this.lbId.Location = new System.Drawing.Point( 52, 60);54 this.lbId.Location = new System.Drawing.Point(27, 9); 85 55 this.lbId.Name = "lbId"; 86 this.lbId.Size = new System.Drawing.Size( 19, 13);56 this.lbId.Size = new System.Drawing.Size(23, 13); 87 57 this.lbId.TabIndex = 6; 88 this.lbId.Text = " Id:";58 this.lbId.Text = "null"; 89 59 // 90 60 // lbIdLabel 91 61 // 92 62 this.lbIdLabel.AutoSize = true; 93 this.lbIdLabel.Location = new System.Drawing.Point(13, 60);63 this.lbIdLabel.Location = new System.Drawing.Point(13, 9); 94 64 this.lbIdLabel.Name = "lbIdLabel"; 95 65 this.lbIdLabel.Size = new System.Drawing.Size(19, 13); … … 97 67 this.lbIdLabel.Text = "Id:"; 98 68 // 69 // txtMessage 70 // 71 this.txtMessage.BackColor = System.Drawing.SystemColors.InactiveBorder; 72 this.txtMessage.Location = new System.Drawing.Point(16, 55); 73 this.txtMessage.Multiline = true; 74 this.txtMessage.Name = "txtMessage"; 75 this.txtMessage.ReadOnly = true; 76 this.txtMessage.Size = new System.Drawing.Size(250, 179); 77 this.txtMessage.TabIndex = 7; 78 // 99 79 // EventLogEntryForm 100 80 // 101 81 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 102 82 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 103 this.ClientSize = new System.Drawing.Size(278, 269); 83 this.ClientSize = new System.Drawing.Size(278, 246); 84 this.Controls.Add(this.txtMessage); 104 85 this.Controls.Add(this.lbId); 105 86 this.Controls.Add(this.lbIdLabel); 106 this.Controls.Add(this.lbTime);107 87 this.Controls.Add(this.lbDate); 108 this.Controls.Add(this.lbTimeLabel);109 88 this.Controls.Add(this.lbDateLabel); 110 this.Controls.Add(this.lbMessage);111 89 this.Name = "EventLogEntryForm"; 112 this.Text = " Eventlog Entry Details";90 this.Text = "Detail"; 113 91 this.ResumeLayout(false); 114 92 this.PerformLayout(); … … 118 96 #endregion 119 97 120 private System.Windows.Forms.ListBox lbMessage;121 98 private System.Windows.Forms.Label lbDateLabel; 122 private System.Windows.Forms.Label lbTimeLabel;123 99 private System.Windows.Forms.Label lbDate; 124 private System.Windows.Forms.Label lbTime;125 100 private System.Windows.Forms.Label lbId; 126 101 private System.Windows.Forms.Label lbIdLabel; 102 private System.Windows.Forms.TextBox txtMessage; 127 103 } 128 104 } -
trunk/sources/HeuristicLab.Hive.Client.Console/EventLogEntryForm.cs
r906 r1002 14 14 InitializeComponent(); 15 15 lbDate.Text = curEventEntry.EventDate; 16 lbTime.Text = curEventEntry.EventTime;17 16 lbId.Text = curEventEntry.ID; 18 lbMessage.Items.Add(curEventEntry.Message);17 txtMessage.Text = curEventEntry.Message; 19 18 } 20 19 } -
trunk/sources/HeuristicLab.Hive.Client.Console/HeuristicLab.Hive.Client.Console.csproj
r953 r1002 113 113 <SubType>Component</SubType> 114 114 </Compile> 115 <Compile Include="ListViewColumnSorterDate.cs" /> 115 116 <Compile Include="Properties\AssemblyInfo.cs" /> 116 117 <EmbeddedResource Include="EventLogEntryForm.resx"> -
trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.Designer.cs
r973 r1002 74 74 this.chMessage = new System.Windows.Forms.ColumnHeader(); 75 75 this.chDate = new System.Windows.Forms.ColumnHeader(); 76 this.chTime = new System.Windows.Forms.ColumnHeader();77 76 this.ilEventLog = new System.Windows.Forms.ImageList(this.components); 78 77 this.tabPage2 = new System.Windows.Forms.TabPage(); 79 78 this.gbOnlineTime = new System.Windows.Forms.GroupBox(); 79 this.label1 = new System.Windows.Forms.Label(); 80 80 this.gbServerConnection = new System.Windows.Forms.GroupBox(); 81 81 this.lbStatus = new System.Windows.Forms.Label(); … … 87 87 this.lbServerIPCaption = new System.Windows.Forms.Label(); 88 88 this.lbPortCaption = new System.Windows.Forms.Label(); 89 this.label1 = new System.Windows.Forms.Label();90 89 this.tcClientConsole.SuspendLayout(); 91 90 this.tpConnection.SuspendLayout(); … … 155 154 // 156 155 this.chSince.Text = "Since"; 157 this.chSince.Width = 74;156 this.chSince.Width = 120; 158 157 // 159 158 // chProgress 160 159 // 161 160 this.chProgress.Text = "Progress"; 162 this.chProgress.Width = 2 60;161 this.chProgress.Width = 200; 163 162 // 164 163 // gbCommon … … 189 188 this.lbJobsAborted.Location = new System.Drawing.Point(195, 114); 190 189 this.lbJobsAborted.Name = "lbJobsAborted"; 191 this.lbJobsAborted.Size = new System.Drawing.Size(5 4, 13);190 this.lbJobsAborted.Size = new System.Drawing.Size(50, 13); 192 191 this.lbJobsAborted.TabIndex = 20; 193 this.lbJobsAborted.Text = " undefined";192 this.lbJobsAborted.Text = "loading..."; 194 193 // 195 194 // lbJobdone … … 198 197 this.lbJobdone.Location = new System.Drawing.Point(62, 114); 199 198 this.lbJobdone.Name = "lbJobdone"; 200 this.lbJobdone.Size = new System.Drawing.Size(5 4, 13);199 this.lbJobdone.Size = new System.Drawing.Size(50, 13); 201 200 this.lbJobdone.TabIndex = 19; 202 this.lbJobdone.Text = " undefined";201 this.lbJobdone.Text = "loading..."; 203 202 // 204 203 // lbJobsFetched … … 207 206 this.lbJobsFetched.Location = new System.Drawing.Point(74, 90); 208 207 this.lbJobsFetched.Name = "lbJobsFetched"; 209 this.lbJobsFetched.Size = new System.Drawing.Size(5 4, 13);208 this.lbJobsFetched.Size = new System.Drawing.Size(50, 13); 210 209 this.lbJobsFetched.TabIndex = 18; 211 this.lbJobsFetched.Text = " undefined";210 this.lbJobsFetched.Text = "loading..."; 212 211 // 213 212 // lbGuid … … 216 215 this.lbGuid.Location = new System.Drawing.Point(41, 16); 217 216 this.lbGuid.Name = "lbGuid"; 218 this.lbGuid.Size = new System.Drawing.Size( 39, 13);217 this.lbGuid.Size = new System.Drawing.Size(50, 13); 219 218 this.lbGuid.TabIndex = 15; 220 this.lbGuid.Text = " not set";219 this.lbGuid.Text = "loading..."; 221 220 // 222 221 // lbGuidCaption … … 234 233 this.lbCs.Location = new System.Drawing.Point(94, 40); 235 234 this.lbCs.Name = "lbCs"; 236 this.lbCs.Size = new System.Drawing.Size(5 4, 13);235 this.lbCs.Size = new System.Drawing.Size(50, 13); 237 236 this.lbCs.TabIndex = 17; 238 this.lbCs.Text = " undefined";237 this.lbCs.Text = "loading..."; 239 238 // 240 239 // lbConnectionStatus … … 243 242 this.lbConnectionStatus.Location = new System.Drawing.Point(97, 66); 244 243 this.lbConnectionStatus.Name = "lbConnectionStatus"; 245 this.lbConnectionStatus.Size = new System.Drawing.Size(5 4, 13);244 this.lbConnectionStatus.Size = new System.Drawing.Size(50, 13); 246 245 this.lbConnectionStatus.TabIndex = 16; 247 this.lbConnectionStatus.Text = " undefined";246 this.lbConnectionStatus.Text = "loading..."; 248 247 // 249 248 // zGJobs 250 249 // 251 this.zGJobs.Location = new System.Drawing.Point(277, 16); 250 this.zGJobs.BackColor = System.Drawing.SystemColors.Control; 251 this.zGJobs.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; 252 this.zGJobs.Location = new System.Drawing.Point(255, 14); 252 253 this.zGJobs.Name = "zGJobs"; 253 254 this.zGJobs.ScrollGrace = 0; … … 258 259 this.zGJobs.ScrollMinY = 0; 259 260 this.zGJobs.ScrollMinY2 = 0; 260 this.zGJobs.Size = new System.Drawing.Size(1 27, 103);261 this.zGJobs.Size = new System.Drawing.Size(149, 111); 261 262 this.zGJobs.TabIndex = 14; 262 263 // … … 322 323 this.chId, 323 324 this.chMessage, 324 this.chDate, 325 this.chTime}); 325 this.chDate}); 326 326 this.lvLog.FullRowSelect = true; 327 327 this.lvLog.GridLines = true; … … 336 336 this.lvLog.View = System.Windows.Forms.View.Details; 337 337 this.lvLog.DoubleClick += new System.EventHandler(this.lvLog_DoubleClick); 338 this.lvLog.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lvLog_ColumnClick); 338 339 // 339 340 // chType … … 345 346 // 346 347 this.chId.Text = "ID"; 348 this.chId.Width = 50; 347 349 // 348 350 // chMessage … … 354 356 // 355 357 this.chDate.Text = "Date"; 356 this.chDate.Width = 63; 357 // 358 // chTime 359 // 360 this.chTime.Text = "Time"; 361 this.chTime.Width = 65; 358 this.chDate.Width = 125; 362 359 // 363 360 // ilEventLog … … 389 386 this.gbOnlineTime.TabStop = false; 390 387 this.gbOnlineTime.Text = "Online time"; 388 // 389 // label1 390 // 391 this.label1.AutoSize = true; 392 this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 393 this.label1.Location = new System.Drawing.Point(116, 169); 394 this.label1.Name = "label1"; 395 this.label1.Size = new System.Drawing.Size(184, 25); 396 this.label1.TabIndex = 0; 397 this.label1.Text = "comming soon..."; 391 398 // 392 399 // gbServerConnection … … 412 419 this.lbStatus.Location = new System.Drawing.Point(74, 80); 413 420 this.lbStatus.Name = "lbStatus"; 414 this.lbStatus.Size = new System.Drawing.Size(5 4, 13);421 this.lbStatus.Size = new System.Drawing.Size(50, 13); 415 422 this.lbStatus.TabIndex = 7; 416 this.lbStatus.Text = " undefined";423 this.lbStatus.Text = "loading..."; 417 424 // 418 425 // lbStatusCaption … … 477 484 this.lbPortCaption.Text = "Port:"; 478 485 // 479 // label1480 //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...";488 //489 486 // HiveClientConsole 490 487 // … … 494 491 this.Controls.Add(this.tcClientConsole); 495 492 this.Name = "HiveClientConsole"; 496 this.Text = "Client Console ";493 this.Text = "Client Console (loading...)"; 497 494 this.Load += new System.EventHandler(this.HiveClientConsole_Load); 498 495 this.Resize += new System.EventHandler(this.HiveClientConsole_Resize); … … 521 518 private System.Windows.Forms.ColumnHeader chMessage; 522 519 private System.Windows.Forms.ColumnHeader chDate; 523 private System.Windows.Forms.ColumnHeader chTime;524 520 private System.Windows.Forms.Label lbJobdoneCaption; 525 521 private System.Windows.Forms.Label lbCsCaption; -
trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs
r973 r1002 41 41 public partial class HiveClientConsole : Form { 42 42 43 EventLog HiveClientEventLog; 44 ClientConsoleCommunicatorClient cccc; 45 System.Windows.Forms.Timer refreshTimer; 43 private EventLog HiveClientEventLog; 44 private ClientConsoleCommunicatorClient cccc; 45 private System.Windows.Forms.Timer refreshTimer; 46 private ListViewColumnSorterDate lvwColumnSorter; 47 46 48 47 49 public HiveClientConsole() { 48 50 InitializeComponent(); 51 lvwColumnSorter = new ListViewColumnSorterDate(); 52 lvLog.ListViewItemSorter = lvwColumnSorter; 53 lvwColumnSorter.SortColumn = 3; 54 lvwColumnSorter.Order = SortOrder.Descending; 49 55 InitTimer(); 50 56 ConnectToClient(); … … 65 71 66 72 private void RefreshGui() { 67 StatusCommons sc = new StatusCommons();68 69 73 try { 70 sc = cccc.GetStatusInfos();74 cccc.GetStatusInfosAsync(); 71 75 } 72 76 catch (Exception ex) { … … 76 80 this.Close(); 77 81 } 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 82 } 119 83 … … 121 85 try { 122 86 cccc = new ClientConsoleCommunicatorClient(); 87 cccc.GetStatusInfosCompleted += new EventHandler<GetStatusInfosCompletedEventArgs>(cccc_GetStatusInfosCompleted); 88 cccc.GetCurrentConnectionCompleted += new EventHandler<GetCurrentConnectionCompletedEventArgs>(cccc_GetCurrentConnectionCompleted); 123 89 } 124 90 catch (Exception) { … … 127 93 if (res == DialogResult.OK) 128 94 this.Close(); 95 } 96 } 97 98 void cccc_GetCurrentConnectionCompleted(object sender, GetCurrentConnectionCompletedEventArgs e) { 99 if (e.Error == null) { 100 ConnectionContainer curConnection = e.Result; 101 tbIPAdress.Text = curConnection.IPAdress; 102 tbPort.Text = curConnection.Port.ToString(); 103 } 104 } 105 106 void cccc_GetStatusInfosCompleted(object sender, GetStatusInfosCompletedEventArgs e) { 107 108 if (e.Error == null) { 109 StatusCommons sc = e.Result; 110 111 lbGuid.Text = sc.ClientGuid.ToString(); 112 lbCs.Text = sc.ConnectedSince.ToString(); 113 lbConnectionStatus.Text = sc.Status.ToString(); 114 lbJobdone.Text = sc.JobsDone.ToString(); 115 lbJobsAborted.Text = sc.JobsAborted.ToString(); 116 lbJobsFetched.Text = sc.JobsFetched.ToString(); 117 118 this.Text = "Client Console (" + sc.Status.ToString() + ")"; 119 lbStatus.Text = sc.Status.ToString(); 120 121 ListViewItem curJobStatusItem; 122 123 if (sc.Jobs != null) { 124 lvJobDetail.Items.Clear(); 125 double progress; 126 foreach (JobStatus curJob in sc.Jobs) { 127 curJobStatusItem = new ListViewItem(curJob.JobId.ToString()); 128 curJobStatusItem.SubItems.Add(curJob.Since.ToString()); 129 progress = curJob.Progress * 100; 130 curJobStatusItem.SubItems.Add(progress.ToString()); 131 lvJobDetail.Items.Add(curJobStatusItem); 132 } 133 lvJobDetail.Sort(); 134 } 135 136 UpdateGraph(zGJobs, sc.JobsDone, sc.JobsAborted); 137 138 if (sc.Status == NetworkEnumWcfConnState.Connected) { 139 btConnect.Enabled = false; 140 btnDisconnect.Enabled = true; 141 cccc.GetCurrentConnectionAsync(); 142 } else if (sc.Status == NetworkEnumWcfConnState.Disconnected) { 143 btConnect.Enabled = true; 144 btnDisconnect.Enabled = false; 145 } else if (sc.Status == NetworkEnumWcfConnState.Failed) { 146 btConnect.Enabled = true; 147 btnDisconnect.Enabled = false; 148 } 129 149 } 130 150 } … … 143 163 curEventLogEntry.SubItems.Add(eve.InstanceId.ToString()); 144 164 curEventLogEntry.SubItems.Add(eve.Message); 145 curEventLogEntry.SubItems.Add(eve.TimeGenerated.Date.ToString()); 146 curEventLogEntry.SubItems.Add(eve.TimeGenerated.TimeOfDay.ToString()); 165 curEventLogEntry.SubItems.Add(eve.TimeGenerated.ToString()); 147 166 lvLog.Items.Add(curEventLogEntry); 148 167 } 168 lvJobDetail.Sort(); 149 169 } 150 170 … … 162 182 if (ev.EntryType == EventLogEntryType.Error) 163 183 curEventLogEntry = new ListViewItem("", 1); 164 curEventLogEntry.SubItems.Add(ev. EventID.ToString());184 curEventLogEntry.SubItems.Add(ev.InstanceId.ToString()); 165 185 curEventLogEntry.SubItems.Add(ev.Message); 166 curEventLogEntry.SubItems.Add(ev.TimeGenerated.Date.ToString()); 167 curEventLogEntry.SubItems.Add(ev.TimeGenerated.TimeOfDay.ToString()); 186 curEventLogEntry.SubItems.Add(ev.TimeGenerated.ToString()); 168 187 lvLog.Items.Add(curEventLogEntry); 188 lvJobDetail.Sort(); 169 189 } 170 190 } … … 175 195 176 196 private void UpdateGraph(ZedGraphControl zgc, int jobsDone, int jobsAborted) { 177 zgc.GraphPane.GraphObjList.Clear();178 197 GraphPane myPane = zgc.GraphPane; 179 180 // Set the titles and axis labels 181 myPane.Legend.IsVisible = false; 182 myPane.Title.IsVisible = false; 198 myPane.GraphObjList.Clear(); 199 200 201 myPane.Title.IsVisible = false; // no title 202 myPane.Border.IsVisible = false; // no border 203 myPane.Chart.Border.IsVisible = false; // no border around the chart 204 myPane.XAxis.IsVisible = false; // no x-axis 205 myPane.YAxis.IsVisible = false; // no y-axis 206 myPane.Legend.IsVisible = false; // no legend 207 208 myPane.Chart.Fill.Type = FillType.None; 183 209 myPane.Fill.Type = FillType.None; 184 210 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"); 211 //// Set the titles and axis labels 212 //myPane.Legend.IsVisible = false; 213 //myPane.Title.IsVisible = false; 214 ////myPane.Fill.Type = FillType.None; 215 ////myPane.Fill = new Fill(); 216 ////myPane.Fill.Color = Color.Transparent; 217 218 double sum = (double)jobsDone + jobsAborted; 219 double perDone = (double)jobsDone / sum * 100; 220 double perAborted = (double)jobsAborted / sum * 100; 221 190 222 myPane.AddPieSlice(perDone, Color.Green, 0.1, "Jobs done"); 223 myPane.AddPieSlice(perAborted, Color.Red, 0.1, "Jobs aborted"); 224 191 225 myPane.AxisChange(); 192 226 } … … 198 232 private void lvLog_DoubleClick(object sender, EventArgs e) { 199 233 ListViewItem lvi = lvLog.SelectedItems[0]; 200 HiveEventEntry hee = new HiveEventEntry(lvi.SubItems[2].Text, lvi.SubItems[3].Text, lvi.SubItems[ 4].Text, lvi.SubItems[1].Text);234 HiveEventEntry hee = new HiveEventEntry(lvi.SubItems[2].Text, lvi.SubItems[3].Text, lvi.SubItems[1].Text); 201 235 202 236 Form EventlogDetails = new EventLogEntryForm(hee); … … 222 256 cccc.Disconnect(); 223 257 } 258 259 private void lvLog_ColumnClick(object sender, ColumnClickEventArgs e) { 260 // Determine if clicked column is already the column that is being sorted. 261 if (e.Column == lvwColumnSorter.SortColumn) { 262 // Reverse the current sort direction for this column. 263 if (lvwColumnSorter.Order == SortOrder.Ascending) { 264 lvwColumnSorter.Order = SortOrder.Descending; 265 } else { 266 lvwColumnSorter.Order = SortOrder.Ascending; 267 } 268 } else { 269 // Set the column number that is to be sorted; default to ascending. 270 lvwColumnSorter.SortColumn = e.Column; 271 lvwColumnSorter.Order = SortOrder.Ascending; 272 } 273 274 // Perform the sort with these new sort options. 275 lvLog.Sort(); 276 } 224 277 } 225 278 } -
trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.resx
r973 r1002 127 127 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABS 128 128 CgAAAk1TRnQBSQFMAgEBAgEAAQQBAAEEAQABEAEAARABAAT/ASEBAAj/AUIBTQ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IKAesB/wIKAeYB/wIKAeQB/wIKAeIB/wEKAScB5gH/AgoBFAH/ 165 lAABEgIBARYBLwEhAQoB/wHSAYkBCgH/AeIBnQEKAf8B2QGRAQoB/wHXAY4BCgH/AdUBjAEKAf8B4QGb 166 AQoB/wHOAYQBCgH/ARQCCgH+GAABEgIBARYCCgEuAf8BCgEQAdMB/wEKASEB9AH/AgoB7AH/AgoB6QH/ 167 AQoBCwHoAf8BCgEpAfAB/wIKAcwB/wEUAgoB/qAAAUYCAQF9AwoB/wFbAUIBCgH/AXwBWwEKAf8BPAEt 168 AQoB/wEUAgoB/gEUAgEBGiQAAUYCAQF9AwoB/wIKAV4B/wIKAYEB/wIKAT4B/wEUAgoB/gEUAgEBGv8A 169 169 kQABQgFNAT4HAAE+AwABKAMAAUADAAEQAwABAQEAAQEFAAGAFwAD/wEAAfwBHwH8AR8EAAHwAQcB8AEH 170 170 BAAB4AEDAeABAwQAAcABAQHAAQEEAAGAAQEBgAEBBAABgAEAAYAFAAGAAQABgAUAAYABAAGABQABgAEA … … 173 173 </value> 174 174 </data> 175 <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 176 <value>True</value> 177 </metadata> 175 178 </root> -
trunk/sources/HeuristicLab.Hive.Client.Console/HiveEventEntry.cs
r906 r1002 8 8 public string Message { get; private set; } 9 9 public string EventDate { get; private set; } 10 public string EventTime { get; private set; }11 10 public string ID { get; private set; } 12 11 13 public HiveEventEntry(string message, string eventDate, string eventTime, stringid) {12 public HiveEventEntry(string message, string eventDate, string id) { 14 13 Message = message; 15 14 EventDate = eventDate; 16 EventTime = eventTime;17 15 ID = id; 18 16 } -
trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/Reference.cs
r973 r1002 317 317 HeuristicLab.Hive.Client.Console.ClientService.StatusCommons GetStatusInfos(); 318 318 319 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")] 320 System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState); 321 322 HeuristicLab.Hive.Client.Console.ClientService.StatusCommons EndGetStatusInfos(System.IAsyncResult result); 323 319 324 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")] 320 325 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetConnection(); 321 326 327 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")] 328 System.IAsyncResult BeginGetConnection(System.AsyncCallback callback, object asyncState); 329 330 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetConnection(System.IAsyncResult result); 331 322 332 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")] 323 333 void SetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container); 324 334 335 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")] 336 System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container, System.AsyncCallback callback, object asyncState); 337 338 void EndSetConnection(System.IAsyncResult result); 339 325 340 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse")] 326 341 void Disconnect(); 327 342 343 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse")] 344 System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState); 345 346 void EndDisconnect(System.IAsyncResult result); 347 328 348 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnectionResponse")] 329 349 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetCurrentConnection(); 350 351 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnectionResponse")] 352 System.IAsyncResult BeginGetCurrentConnection(System.AsyncCallback callback, object asyncState); 353 354 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result); 330 355 } 331 356 332 357 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 333 358 public interface IClientConsoleCommunicatorChannel : HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator, System.ServiceModel.IClientChannel { 359 } 360 361 [System.Diagnostics.DebuggerStepThroughAttribute()] 362 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 363 public partial class GetStatusInfosCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 364 365 private object[] results; 366 367 public GetStatusInfosCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 368 base(exception, cancelled, userState) { 369 this.results = results; 370 } 371 372 public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons Result { 373 get { 374 base.RaiseExceptionIfNecessary(); 375 return ((HeuristicLab.Hive.Client.Console.ClientService.StatusCommons)(this.results[0])); 376 } 377 } 378 } 379 380 [System.Diagnostics.DebuggerStepThroughAttribute()] 381 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 382 public partial class GetConnectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 383 384 private object[] results; 385 386 public GetConnectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 387 base(exception, cancelled, userState) { 388 this.results = results; 389 } 390 391 public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer Result { 392 get { 393 base.RaiseExceptionIfNecessary(); 394 return ((HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer)(this.results[0])); 395 } 396 } 397 } 398 399 [System.Diagnostics.DebuggerStepThroughAttribute()] 400 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 401 public partial class GetCurrentConnectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 402 403 private object[] results; 404 405 public GetCurrentConnectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 406 base(exception, cancelled, userState) { 407 this.results = results; 408 } 409 410 public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer Result { 411 get { 412 base.RaiseExceptionIfNecessary(); 413 return ((HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer)(this.results[0])); 414 } 415 } 334 416 } 335 417 … … 338 420 public partial class ClientConsoleCommunicatorClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator>, HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator { 339 421 422 private BeginOperationDelegate onBeginGetStatusInfosDelegate; 423 424 private EndOperationDelegate onEndGetStatusInfosDelegate; 425 426 private System.Threading.SendOrPostCallback onGetStatusInfosCompletedDelegate; 427 428 private BeginOperationDelegate onBeginGetConnectionDelegate; 429 430 private EndOperationDelegate onEndGetConnectionDelegate; 431 432 private System.Threading.SendOrPostCallback onGetConnectionCompletedDelegate; 433 434 private BeginOperationDelegate onBeginSetConnectionDelegate; 435 436 private EndOperationDelegate onEndSetConnectionDelegate; 437 438 private System.Threading.SendOrPostCallback onSetConnectionCompletedDelegate; 439 440 private BeginOperationDelegate onBeginDisconnectDelegate; 441 442 private EndOperationDelegate onEndDisconnectDelegate; 443 444 private System.Threading.SendOrPostCallback onDisconnectCompletedDelegate; 445 446 private BeginOperationDelegate onBeginGetCurrentConnectionDelegate; 447 448 private EndOperationDelegate onEndGetCurrentConnectionDelegate; 449 450 private System.Threading.SendOrPostCallback onGetCurrentConnectionCompletedDelegate; 451 340 452 public ClientConsoleCommunicatorClient() { 341 453 } … … 357 469 } 358 470 471 public event System.EventHandler<GetStatusInfosCompletedEventArgs> GetStatusInfosCompleted; 472 473 public event System.EventHandler<GetConnectionCompletedEventArgs> GetConnectionCompleted; 474 475 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetConnectionCompleted; 476 477 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> DisconnectCompleted; 478 479 public event System.EventHandler<GetCurrentConnectionCompletedEventArgs> GetCurrentConnectionCompleted; 480 359 481 public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons GetStatusInfos() { 360 482 return base.Channel.GetStatusInfos(); 361 483 } 362 484 485 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 486 public System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState) { 487 return base.Channel.BeginGetStatusInfos(callback, asyncState); 488 } 489 490 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 491 public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons EndGetStatusInfos(System.IAsyncResult result) { 492 return base.Channel.EndGetStatusInfos(result); 493 } 494 495 private System.IAsyncResult OnBeginGetStatusInfos(object[] inValues, System.AsyncCallback callback, object asyncState) { 496 return this.BeginGetStatusInfos(callback, asyncState); 497 } 498 499 private object[] OnEndGetStatusInfos(System.IAsyncResult result) { 500 HeuristicLab.Hive.Client.Console.ClientService.StatusCommons retVal = this.EndGetStatusInfos(result); 501 return new object[] { 502 retVal}; 503 } 504 505 private void OnGetStatusInfosCompleted(object state) { 506 if ((this.GetStatusInfosCompleted != null)) { 507 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 508 this.GetStatusInfosCompleted(this, new GetStatusInfosCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 509 } 510 } 511 512 public void GetStatusInfosAsync() { 513 this.GetStatusInfosAsync(null); 514 } 515 516 public void GetStatusInfosAsync(object userState) { 517 if ((this.onBeginGetStatusInfosDelegate == null)) { 518 this.onBeginGetStatusInfosDelegate = new BeginOperationDelegate(this.OnBeginGetStatusInfos); 519 } 520 if ((this.onEndGetStatusInfosDelegate == null)) { 521 this.onEndGetStatusInfosDelegate = new EndOperationDelegate(this.OnEndGetStatusInfos); 522 } 523 if ((this.onGetStatusInfosCompletedDelegate == null)) { 524 this.onGetStatusInfosCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusInfosCompleted); 525 } 526 base.InvokeAsync(this.onBeginGetStatusInfosDelegate, null, this.onEndGetStatusInfosDelegate, this.onGetStatusInfosCompletedDelegate, userState); 527 } 528 363 529 public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetConnection() { 364 530 return base.Channel.GetConnection(); 365 531 } 366 532 533 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 534 public System.IAsyncResult BeginGetConnection(System.AsyncCallback callback, object asyncState) { 535 return base.Channel.BeginGetConnection(callback, asyncState); 536 } 537 538 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 539 public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetConnection(System.IAsyncResult result) { 540 return base.Channel.EndGetConnection(result); 541 } 542 543 private System.IAsyncResult OnBeginGetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) { 544 return this.BeginGetConnection(callback, asyncState); 545 } 546 547 private object[] OnEndGetConnection(System.IAsyncResult result) { 548 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer retVal = this.EndGetConnection(result); 549 return new object[] { 550 retVal}; 551 } 552 553 private void OnGetConnectionCompleted(object state) { 554 if ((this.GetConnectionCompleted != null)) { 555 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 556 this.GetConnectionCompleted(this, new GetConnectionCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 557 } 558 } 559 560 public void GetConnectionAsync() { 561 this.GetConnectionAsync(null); 562 } 563 564 public void GetConnectionAsync(object userState) { 565 if ((this.onBeginGetConnectionDelegate == null)) { 566 this.onBeginGetConnectionDelegate = new BeginOperationDelegate(this.OnBeginGetConnection); 567 } 568 if ((this.onEndGetConnectionDelegate == null)) { 569 this.onEndGetConnectionDelegate = new EndOperationDelegate(this.OnEndGetConnection); 570 } 571 if ((this.onGetConnectionCompletedDelegate == null)) { 572 this.onGetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetConnectionCompleted); 573 } 574 base.InvokeAsync(this.onBeginGetConnectionDelegate, null, this.onEndGetConnectionDelegate, this.onGetConnectionCompletedDelegate, userState); 575 } 576 367 577 public void SetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container) { 368 578 base.Channel.SetConnection(container); 369 579 } 370 580 581 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 582 public System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container, System.AsyncCallback callback, object asyncState) { 583 return base.Channel.BeginSetConnection(container, callback, asyncState); 584 } 585 586 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 587 public void EndSetConnection(System.IAsyncResult result) { 588 base.Channel.EndSetConnection(result); 589 } 590 591 private System.IAsyncResult OnBeginSetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) { 592 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container = ((HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer)(inValues[0])); 593 return this.BeginSetConnection(container, callback, asyncState); 594 } 595 596 private object[] OnEndSetConnection(System.IAsyncResult result) { 597 this.EndSetConnection(result); 598 return null; 599 } 600 601 private void OnSetConnectionCompleted(object state) { 602 if ((this.SetConnectionCompleted != null)) { 603 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 604 this.SetConnectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 605 } 606 } 607 608 public void SetConnectionAsync(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container) { 609 this.SetConnectionAsync(container, null); 610 } 611 612 public void SetConnectionAsync(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container, object userState) { 613 if ((this.onBeginSetConnectionDelegate == null)) { 614 this.onBeginSetConnectionDelegate = new BeginOperationDelegate(this.OnBeginSetConnection); 615 } 616 if ((this.onEndSetConnectionDelegate == null)) { 617 this.onEndSetConnectionDelegate = new EndOperationDelegate(this.OnEndSetConnection); 618 } 619 if ((this.onSetConnectionCompletedDelegate == null)) { 620 this.onSetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetConnectionCompleted); 621 } 622 base.InvokeAsync(this.onBeginSetConnectionDelegate, new object[] { 623 container}, this.onEndSetConnectionDelegate, this.onSetConnectionCompletedDelegate, userState); 624 } 625 371 626 public void Disconnect() { 372 627 base.Channel.Disconnect(); 373 628 } 374 629 630 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 631 public System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState) { 632 return base.Channel.BeginDisconnect(callback, asyncState); 633 } 634 635 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 636 public void EndDisconnect(System.IAsyncResult result) { 637 base.Channel.EndDisconnect(result); 638 } 639 640 private System.IAsyncResult OnBeginDisconnect(object[] inValues, System.AsyncCallback callback, object asyncState) { 641 return this.BeginDisconnect(callback, asyncState); 642 } 643 644 private object[] OnEndDisconnect(System.IAsyncResult result) { 645 this.EndDisconnect(result); 646 return null; 647 } 648 649 private void OnDisconnectCompleted(object state) { 650 if ((this.DisconnectCompleted != null)) { 651 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 652 this.DisconnectCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 653 } 654 } 655 656 public void DisconnectAsync() { 657 this.DisconnectAsync(null); 658 } 659 660 public void DisconnectAsync(object userState) { 661 if ((this.onBeginDisconnectDelegate == null)) { 662 this.onBeginDisconnectDelegate = new BeginOperationDelegate(this.OnBeginDisconnect); 663 } 664 if ((this.onEndDisconnectDelegate == null)) { 665 this.onEndDisconnectDelegate = new EndOperationDelegate(this.OnEndDisconnect); 666 } 667 if ((this.onDisconnectCompletedDelegate == null)) { 668 this.onDisconnectCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDisconnectCompleted); 669 } 670 base.InvokeAsync(this.onBeginDisconnectDelegate, null, this.onEndDisconnectDelegate, this.onDisconnectCompletedDelegate, userState); 671 } 672 375 673 public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetCurrentConnection() { 376 674 return base.Channel.GetCurrentConnection(); 377 675 } 676 677 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 678 public System.IAsyncResult BeginGetCurrentConnection(System.AsyncCallback callback, object asyncState) { 679 return base.Channel.BeginGetCurrentConnection(callback, asyncState); 680 } 681 682 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 683 public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result) { 684 return base.Channel.EndGetCurrentConnection(result); 685 } 686 687 private System.IAsyncResult OnBeginGetCurrentConnection(object[] inValues, System.AsyncCallback callback, object asyncState) { 688 return this.BeginGetCurrentConnection(callback, asyncState); 689 } 690 691 private object[] OnEndGetCurrentConnection(System.IAsyncResult result) { 692 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer retVal = this.EndGetCurrentConnection(result); 693 return new object[] { 694 retVal}; 695 } 696 697 private void OnGetCurrentConnectionCompleted(object state) { 698 if ((this.GetCurrentConnectionCompleted != null)) { 699 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 700 this.GetCurrentConnectionCompleted(this, new GetCurrentConnectionCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 701 } 702 } 703 704 public void GetCurrentConnectionAsync() { 705 this.GetCurrentConnectionAsync(null); 706 } 707 708 public void GetCurrentConnectionAsync(object userState) { 709 if ((this.onBeginGetCurrentConnectionDelegate == null)) { 710 this.onBeginGetCurrentConnectionDelegate = new BeginOperationDelegate(this.OnBeginGetCurrentConnection); 711 } 712 if ((this.onEndGetCurrentConnectionDelegate == null)) { 713 this.onEndGetCurrentConnectionDelegate = new EndOperationDelegate(this.OnEndGetCurrentConnection); 714 } 715 if ((this.onGetCurrentConnectionCompletedDelegate == null)) { 716 this.onGetCurrentConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetCurrentConnectionCompleted); 717 } 718 base.InvokeAsync(this.onBeginGetCurrentConnectionDelegate, null, this.onEndGetCurrentConnectionDelegate, this.onGetCurrentConnectionCompletedDelegate, userState); 719 } 378 720 } 379 721 } -
trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/Reference.svcmap
r954 r1002 2 2 <ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="94ae11a7-d639-4d8a-b9e6-a027596236fd" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap"> 3 3 <ClientOptions> 4 <GenerateAsynchronousMethods> false</GenerateAsynchronousMethods>4 <GenerateAsynchronousMethods>true</GenerateAsynchronousMethods> 5 5 <EnableDataBinding>true</EnableDataBinding> 6 6 <ExcludedTypes />
Note: See TracChangeset
for help on using the changeset viewer.