Changeset 6006 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.4/Views/HiveEngineView.cs
- Timestamp:
- 04/12/11 13:43:05 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources
- Property svn:ignore
-
old new 4 4 PrecompiledWeb 5 5 CreateEventLogSources 6 WindowsFormsTestProject
-
- Property svn:ignore
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.4
- Property svn:ignore
-
old new 2 2 obj 3 3 HeuristicLab.HiveEngine-3.4.csproj.vs10x 4 HeuristicLabHiveEnginePlugin.cs
-
- Property svn:ignore
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.4/Views/HiveEngineView.cs
r5958 r6006 1 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Drawing; 5 using System.Data; 6 using System.Linq; 7 using System.Text; 2 using HeuristicLab.Core.Views; 8 3 using HeuristicLab.MainForm; 9 using HeuristicLab.Optimization.Views;10 using HeuristicLab.Core.Views;11 4 12 5 namespace HeuristicLab.HiveEngine.Views { 13 6 [View("Hive Engine View")] 14 7 [Content(typeof(HiveEngine), IsDefaultView = true)] 15 public sealed partial class HiveEngineView : EngineView {8 public sealed partial class HiveEngineView : ItemView { 16 9 public new HiveEngine Content { 17 10 get { return (HiveEngine)base.Content; } … … 24 17 25 18 protected override void DeregisterContentEvents() { 19 Content.ExecutionStateChanged -= new EventHandler(Content_ExecutionStateChanged); 26 20 Content.ExecutionTimeOnHiveChanged -= new EventHandler(Content_ExecutionTimeOnHiveChanged); 27 21 base.DeregisterContentEvents(); … … 30 24 protected override void RegisterContentEvents() { 31 25 base.RegisterContentEvents(); 26 Content.ExecutionStateChanged += new EventHandler(Content_ExecutionStateChanged); 32 27 Content.ExecutionTimeOnHiveChanged += new EventHandler(Content_ExecutionTimeOnHiveChanged); 33 28 } 34 29 35 30 #region Event Handlers (Content) 31 private void Content_ExecutionStateChanged(object sender, EventArgs e) { 32 if (InvokeRequired) { 33 Invoke(new EventHandler(Content_ExecutionStateChanged), sender, e); 34 } else { 35 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 36 } 37 } 38 36 39 private void Content_ExecutionTimeOnHiveChanged(object sender, EventArgs e) { 37 40 if (InvokeRequired) { … … 49 52 priorityTextBox.Text = string.Empty; 50 53 executionTimeOnHiveTextBox.Text = string.Empty; 54 useLocalPluginsCheckBox.Checked = false; 55 hiveExperimentListView.Content = null; 56 logView.Content = null; 51 57 } else { 52 resourceIdsTextBox.Text = Content.Resource Ids;58 resourceIdsTextBox.Text = Content.ResourceNames; 53 59 priorityTextBox.Text = Content.Priority.ToString(); 54 60 executionTimeOnHiveTextBox.Text = Content.ExecutionTimeOnHive.ToString(); 61 useLocalPluginsCheckBox.Checked = Content.UseLocalPlugins; 62 hiveExperimentListView.Content = Content.HiveExperiments; 63 logView.Content = Content.Log; 55 64 } 56 65 } … … 62 71 resourceIdsTextBox.ReadOnly = this.ReadOnly; 63 72 priorityTextBox.ReadOnly = this.ReadOnly; 73 useLocalPluginsCheckBox.Enabled = !this.ReadOnly; 64 74 } else { 65 75 resourceIdsTextBox.ReadOnly = false; 66 76 priorityTextBox.ReadOnly = false; 77 useLocalPluginsCheckBox.Enabled = false; 67 78 } 68 79 } … … 70 81 #region Event Handlers (child controls) 71 82 private void resourceIdsTextBox_TextChanged(object sender, EventArgs e) { 72 Content.Resource Ids = resourceIdsTextBox.Text;83 Content.ResourceNames = resourceIdsTextBox.Text; 73 84 } 74 #endregion75 85 76 86 private void priorityTextBox_TextChanged(object sender, EventArgs e) { 77 87 Content.Priority = int.Parse(priorityTextBox.Text); 78 88 } 89 90 private void useLocalPluginsCheckBox_CheckedChanged(object sender, EventArgs e) { 91 Content.UseLocalPlugins = useLocalPluginsCheckBox.Checked; 92 } 93 #endregion 94 95 79 96 } 80 97 }
Note: See TracChangeset
for help on using the changeset viewer.