- Timestamp:
- 01/11/11 18:03:02 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.HiveEngine/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.HiveEngine/3.3/HiveEngine.cs
r5268 r5282 33 33 public string ResourceIds { get; set; } 34 34 35 [Storable] 36 private int priority; 37 public int Priority { 38 get { return priority; } 39 set { priority = value; } 40 } 41 35 42 #region constructors and cloning 36 43 public HiveEngine() { … … 43 50 this.ResourceIds = original.ResourceIds; 44 51 this.currentOperator = cloner.Clone(original.currentOperator); 52 this.priority = original.priority; 45 53 } 46 54 public override IDeepCloneable Clone(Cloner cloner) { … … 292 300 serializedJob.JobInfo.CoresNeeded = 1; 293 301 serializedJob.JobInfo.PluginsNeeded = pluginsNeeded; 302 serializedJob.JobInfo.Priority = priority; 294 303 ResponseObject<JobDto> response = null; 295 304 maxConcurrentConnections.WaitOne(); -
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.HiveEngine/3.3/Views/HiveEngineView.Designer.cs
r5153 r5282 26 26 this.resourceIdsLabel = new System.Windows.Forms.Label(); 27 27 this.resourceIdsTextBox = new System.Windows.Forms.TextBox(); 28 this.priorityLabel = new System.Windows.Forms.Label(); 29 this.priorityTextBox = new System.Windows.Forms.TextBox(); 28 30 this.SuspendLayout(); 29 31 // 30 32 // logView 31 33 // 32 this.logView.Location = new System.Drawing.Point(0, 49);33 this.logView.Size = new System.Drawing.Size(430, 302);34 this.logView.Location = new System.Drawing.Point(0, 81); 35 this.logView.Size = new System.Drawing.Size(430, 270); 34 36 // 35 37 // resourceIdsLabel … … 51 53 this.resourceIdsTextBox.TextChanged += new System.EventHandler(this.resourceIdsTextBox_TextChanged); 52 54 // 55 // priorityLabel 56 // 57 this.priorityLabel.AutoSize = true; 58 this.priorityLabel.Location = new System.Drawing.Point(3, 49); 59 this.priorityLabel.Name = "priorityLabel"; 60 this.priorityLabel.Size = new System.Drawing.Size(41, 13); 61 this.priorityLabel.TabIndex = 5; 62 this.priorityLabel.Text = "Priority:"; 63 // 64 // priorityTextBox 65 // 66 this.priorityTextBox.Location = new System.Drawing.Point(73, 46); 67 this.priorityTextBox.Name = "priorityTextBox"; 68 this.priorityTextBox.Size = new System.Drawing.Size(357, 20); 69 this.priorityTextBox.TabIndex = 6; 70 this.priorityTextBox.TextChanged += new System.EventHandler(this.priorityTextBox_TextChanged); 71 // 53 72 // HiveEngineView 54 73 // … … 56 75 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 57 76 this.Controls.Add(this.resourceIdsTextBox); 77 this.Controls.Add(this.priorityTextBox); 58 78 this.Controls.Add(this.resourceIdsLabel); 79 this.Controls.Add(this.priorityLabel); 59 80 this.Name = "HiveEngineView"; 81 this.Controls.SetChildIndex(this.priorityLabel, 0); 60 82 this.Controls.SetChildIndex(this.resourceIdsLabel, 0); 83 this.Controls.SetChildIndex(this.priorityTextBox, 0); 61 84 this.Controls.SetChildIndex(this.resourceIdsTextBox, 0); 62 85 this.Controls.SetChildIndex(this.logView, 0); … … 72 95 private System.Windows.Forms.Label resourceIdsLabel; 73 96 private System.Windows.Forms.TextBox resourceIdsTextBox; 97 private System.Windows.Forms.Label priorityLabel; 98 private System.Windows.Forms.TextBox priorityTextBox; 74 99 } 75 100 } -
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.HiveEngine/3.3/Views/HiveEngineView.cs
r5153 r5282 24 24 25 25 protected override void DeregisterContentEvents() { 26 // TODO: Deregister your event handlers here27 26 base.DeregisterContentEvents(); 28 27 } … … 30 29 protected override void RegisterContentEvents() { 31 30 base.RegisterContentEvents(); 32 // TODO: Register your event handlers here33 31 } 34 32 35 33 #region Event Handlers (Content) 36 // TODO:Put event handlers of the content here34 // Put event handlers of the content here 37 35 #endregion 38 36 … … 40 38 base.OnContentChanged(); 41 39 if (Content == null) { 42 // TODO: Add code when content has been changed and is null 40 resourceIdsTextBox.Text = string.Empty; 41 priorityTextBox.Text = string.Empty; 43 42 } else { 44 // TODO: Add code when content has been changed and is not null 43 resourceIdsTextBox.Text = Content.ResourceIds; 44 priorityTextBox.Text = Content.Priority.ToString(); 45 45 } 46 46 } … … 52 52 if (Content != null) { 53 53 resourceIdsTextBox.ReadOnly = this.ReadOnly; 54 priorityTextBox.ReadOnly = this.ReadOnly; 54 55 } else { 55 56 resourceIdsTextBox.ReadOnly = false; 57 priorityTextBox.ReadOnly = false; 56 58 } 57 59 } … … 62 64 } 63 65 #endregion 66 67 private void priorityTextBox_TextChanged(object sender, EventArgs e) { 68 Content.Priority = int.Parse(priorityTextBox.Text); 69 } 64 70 } 65 71 } -
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.HiveEngine/3.3/Views/HiveEngineView.resx
r5153 r5282 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 120 </root>
Note: See TracChangeset
for help on using the changeset viewer.