Changeset 5512 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager
- Timestamp:
- 02/17/11 15:16:26 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentManagerView.Designer.cs
r4905 r5512 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HiveExperimentManagerView)); 48 this.hiveExperimentListView = new HiveExperimentListView(); 49 this.updateExperimentsButton = new System.Windows.Forms.Button(); 50 this.updateExperimentsPanel = new System.Windows.Forms.Panel(); 51 this.updateExperimentsPanel.SuspendLayout(); 47 this.hiveExperimentListView = new HeuristicLab.Clients.Hive.Views.HiveExperimentListView(); 52 48 this.SuspendLayout(); 53 49 // … … 65 61 this.hiveExperimentListView.TabIndex = 0; 66 62 // 67 // updateExperimentsButton 68 // 69 this.updateExperimentsButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 70 | System.Windows.Forms.AnchorStyles.Right))); 71 this.updateExperimentsButton.Image = ((System.Drawing.Image)(resources.GetObject("updateExperimentsButton.Image"))); 72 this.updateExperimentsButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; 73 this.updateExperimentsButton.Location = new System.Drawing.Point(87, 28); 74 this.updateExperimentsButton.Name = "updateExperimentsButton"; 75 this.updateExperimentsButton.Size = new System.Drawing.Size(175, 59); 76 this.updateExperimentsButton.TabIndex = 5; 77 this.updateExperimentsButton.Text = "Update Experiment List"; 78 this.updateExperimentsButton.UseVisualStyleBackColor = true; 79 this.updateExperimentsButton.Click += new System.EventHandler(this.updateExperimentsButton_Click); 80 // 81 // updateExperimentsPanel 82 // 83 this.updateExperimentsPanel.Controls.Add(this.updateExperimentsButton); 84 this.updateExperimentsPanel.Location = new System.Drawing.Point(228, 0); 85 this.updateExperimentsPanel.Name = "updateExperimentsPanel"; 86 this.updateExperimentsPanel.Size = new System.Drawing.Size(360, 103); 87 this.updateExperimentsPanel.TabIndex = 6; 88 // 89 // HiveClientView 63 // HiveExperimentManagerBaseView 90 64 // 91 65 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 92 66 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 93 this.Controls.Add(this.updateExperimentsPanel);94 67 this.Controls.Add(this.hiveExperimentListView); 95 this.Name = "Hive ClientView";68 this.Name = "HiveExperimentManagerBaseView"; 96 69 this.Size = new System.Drawing.Size(735, 524); 97 this.updateExperimentsPanel.ResumeLayout(false);98 70 this.ResumeLayout(false); 99 71 … … 101 73 #endregion 102 74 103 private System.Windows.Forms.Button updateExperimentsButton;104 75 private HiveExperimentListView hiveExperimentListView; 105 private System.Windows.Forms.Panel updateExperimentsPanel;106 76 107 77 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentManagerView.cs
r4905 r5512 21 21 22 22 using System; 23 using System.Threading;24 23 using System.Windows.Forms; 25 24 using HeuristicLab.Core.Views; 26 25 using HeuristicLab.MainForm; 27 using HeuristicLab.PluginInfrastructure;28 26 29 27 namespace HeuristicLab.Clients.Hive.Views { … … 32 30 /// </summary> 33 31 [View("Hive Experiment Manager View")] 34 [Content(typeof(HiveExperimentManagerClient), true)] 35 public sealed partial class HiveExperimentManagerView : ItemView { 36 private ProgressView progressView; 32 [Content(typeof(HiveExperimentManagerClient), false)] 33 public partial class HiveExperimentManagerView : ItemView { 37 34 38 35 public new HiveExperimentManagerClient Content { … … 46 43 public HiveExperimentManagerView() { 47 44 InitializeComponent(); 48 updateExperimentsPanel.Dock = DockStyle.Fill;49 45 } 50 46 … … 52 48 base.OnContentChanged(); 53 49 Content_HiveExperimentsChanged(this, EventArgs.Empty); 54 Content_IsProgressingChanged(this, EventArgs.Empty); 55 if(Content != null) UpdateExperimentsAsync(); 50 } 51 52 protected override void SetEnabledStateOfControls() { 53 base.SetEnabledStateOfControls(); 56 54 } 57 55 58 56 protected override void RegisterContentEvents() { 59 57 this.Content.HiveExperimentsChanged += new EventHandler(Content_HiveExperimentsChanged); 60 this.Content.IsProgressingChanged += new EventHandler(Content_IsProgressingChanged);61 58 } 62 59 63 60 protected override void DeregisterContentEvents() { 64 61 this.Content.HiveExperimentsChanged -= new EventHandler(Content_HiveExperimentsChanged); 65 this.Content.IsProgressingChanged -= new EventHandler(Content_IsProgressingChanged);66 62 } 67 63 … … 71 67 } 72 68 } 73 74 protected override void SetEnabledStateOfControls() {75 base.SetEnabledStateOfControls();76 updateExperimentsPanel.Visible = Content != null && Content.HiveExperiments == null;77 78 }79 80 private void updateExperimentsButton_Click(object sender, EventArgs e) {81 if(Content != null) UpdateExperimentsAsync();82 }83 84 private void Content_IsProgressingChanged(object sender, EventArgs e) {85 if (this.InvokeRequired) {86 Invoke(new EventHandler(Content_IsProgressingChanged), sender, e);87 } else {88 if (Content != null && Content.IsProgressing) {89 SetProgressView();90 } else {91 FinishProgressView();92 }93 }94 }95 96 private void SetProgressView() {97 if (progressView == null) {98 progressView = new ProgressView(this, Content.Progress);99 } else {100 progressView.Progress = Content.Progress;101 }102 }103 104 private void FinishProgressView() {105 if (progressView != null) {106 progressView.Finish();107 progressView = null;108 SetEnabledStateOfControls();109 }110 }111 112 private void UpdateExperimentsAsync() {113 MethodInvoker invoker = new MethodInvoker(Content.UpdateExperimentList);114 invoker.BeginInvoke((ar) => {115 try {116 invoker.EndInvoke(ar);117 }118 catch (Exception ex) {119 ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex);120 }121 }, null);122 }123 69 } 124 70 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentManagerView.resx
r4905 r5512 113 113 </resheader> 114 114 <resheader name="reader"> 115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 116 116 </resheader> 117 117 <resheader name="writer"> 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 121 <data name="updateExperimentsButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 122 <value> 123 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH 124 DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp 125 bGUAAEjHnZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15FYZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZE 126 sRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTs 127 AIABHmCAKQBMVka6X7B7CBDJy82FniFyAl8EAfB6WLwCcNPQM4BOB/+fpFnpfIHomAARm7M5GSwRF4g4 128 JUuQLrbPipgalyxmGCVmvihBEcuJOWGRDT77LLKjmNmpPLaIxTmns1PZYu4V8bZMIUfEiK+ICzO5nCwR 129 3xK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ntrWLoGw7gWvM+Ieb 181 WKItYrGmnHlhDSyKOcsKtV5M2jc8laDeL6ZgMBiwWq2Mjo5OX9fIyAifNrcRvcfMY5ntRGW0EpveSlzG 182 FeJ1Vwl5tZml0fuI0WzCaDRisVgYHBz03oM3YOrhcrmw2+2UV33EunfKiUo5QHjyXiISDWiTdej1eioq 183 Krx7Dw0N4fF4vLfwN80WjZRSOVvaAAAAAElFTkSuQmCC 184 </value> 185 </data> 186 <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 120 <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 187 121 <value>57</value> 188 122 </metadata> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/MenuItems/ExperimentManagerMenuItem.cs
r5402 r5512 21 21 22 22 using System.Collections.Generic; 23 using HeuristicLab.Clients.Hive; 23 24 using HeuristicLab.MainForm; 24 using HeuristicLab.MainForm.WindowsForms;25 using HeuristicLab.Clients.Hive;26 25 27 26 namespace HeuristicLab.Optimizer.MenuItems {
Note: See TracChangeset
for help on using the changeset viewer.