Changeset 7464 for branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
- Timestamp:
- 02/07/12 16:50:35 (12 years ago)
- Location:
- branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationEnsembleSolutionView.Designer.cs
r7259 r7464 44 44 /// </summary> 45 45 private void InitializeComponent() { 46 components = new System.ComponentModel.Container(); 46 this.cmbWeightCalculator = new System.Windows.Forms.ComboBox(); 47 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 48 this.splitContainer.Panel1.SuspendLayout(); 49 this.splitContainer.Panel2.SuspendLayout(); 50 this.splitContainer.SuspendLayout(); 51 this.itemsGroupBox.SuspendLayout(); 52 this.detailsGroupBox.SuspendLayout(); 53 this.SuspendLayout(); 54 // 55 // splitContainer 56 // 57 // 58 // splitContainer.Panel2 59 // 60 this.splitContainer.Panel2.Controls.Add(this.cmbWeightCalculator); 61 // 62 // addButton 63 // 64 this.toolTip.SetToolTip(this.addButton, "Add"); 65 // 66 // removeButton 67 // 68 this.toolTip.SetToolTip(this.removeButton, "Remove"); 69 // 70 // cmbWeightCalculator 71 // 72 this.cmbWeightCalculator.FormattingEnabled = true; 73 this.cmbWeightCalculator.Location = new System.Drawing.Point(9, 6); 74 this.cmbWeightCalculator.Name = "cmbWeightCalculator"; 75 this.cmbWeightCalculator.Size = new System.Drawing.Size(180, 21); 76 this.cmbWeightCalculator.TabIndex = 1; 77 this.cmbWeightCalculator.SelectedIndexChanged += new System.EventHandler(this.cmbWeightCalculator_SelectedIndexChanged); 78 // 79 // ClassificationEnsembleSolutionView 80 // 81 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 47 82 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 83 this.Name = "ClassificationEnsembleSolutionView"; 84 this.splitContainer.Panel1.ResumeLayout(false); 85 this.splitContainer.Panel2.ResumeLayout(false); 86 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); 87 this.splitContainer.ResumeLayout(false); 88 this.itemsGroupBox.ResumeLayout(false); 89 this.detailsGroupBox.ResumeLayout(false); 90 this.ResumeLayout(false); 91 48 92 } 49 93 50 94 #endregion 95 96 private System.Windows.Forms.ComboBox cmbWeightCalculator; 51 97 } 52 98 } -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationEnsembleSolutionView.cs
r7259 r7464 20 20 #endregion 21 21 22 using System.Linq; 22 23 using System.Windows.Forms; 24 using HeuristicLab.Common; 23 25 using HeuristicLab.Core; 24 26 using HeuristicLab.MainForm; 27 using HeuristicLab.PluginInfrastructure; 28 using HeuristicLab.Problems.DataAnalysis.Interfaces.Classification; 25 29 26 30 namespace HeuristicLab.Problems.DataAnalysis.Views { … … 37 41 } 38 42 43 protected override void SetEnabledStateOfControls() { 44 base.SetEnabledStateOfControls(); 45 cmbWeightCalculator.Enabled = !Locked && !ReadOnly && Content != null; 46 } 47 39 48 protected override void OnContentChanged() { 40 49 base.OnContentChanged(); 41 50 itemsListView.Items.Remove(itemsListView.FindItemWithText("Model: ClassificationEnsembleModel")); 51 if (cmbWeightCalculator.Items.Count == 0) { 52 cmbWeightCalculator.Items.AddRange(ApplicationManager.Manager.GetInstances<IClassificationEnsembleSolutionWeightCalculator>().OrderBy(b => b.Name, new NaturalStringComparer()).ToArray()); 53 if (cmbWeightCalculator.Items.Count > 0) 54 cmbWeightCalculator.SelectedIndex = 0; 55 } else { 56 Content.WeightCalculator = (IClassificationEnsembleSolutionWeightCalculator)cmbWeightCalculator.SelectedItem; 57 } 58 } 59 60 private void cmbWeightCalculator_SelectedIndexChanged(object sender, System.EventArgs e) { 61 if (cmbWeightCalculator.SelectedItem != null) 62 Content.WeightCalculator = (IClassificationEnsembleSolutionWeightCalculator)cmbWeightCalculator.SelectedItem; 42 63 } 43 64 -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DiscriminantFunctionClassificationSolutionView.cs
r7259 r7464 24 24 namespace HeuristicLab.Problems.DataAnalysis.Views { 25 25 [View("ClassificationSolution View")] 26 [Content(typeof(DiscriminantFunctionClassificationSolutionBase), false)]26 [Content(typeof(DiscriminantFunctionClassificationSolutionBase), true)] 27 27 public partial class DiscriminantFunctionClassificationSolutionView : ClassificationSolutionView { 28 28 public DiscriminantFunctionClassificationSolutionView() {
Note: See TracChangeset
for help on using the changeset viewer.