Changeset 10902
- Timestamp:
- 05/28/14 14:12:29 (11 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r10899 r10902 57 57 get { return itemsListView; } 58 58 } 59 60 private SortOrder sorting = SortOrder.Ascending;61 public SortOrder Sorting {62 get { return sorting; }63 set { sorting = value; }64 }65 66 59 public ItemCollectionView() { 67 60 InitializeComponent(); … … 112 105 AddListViewItem(CreateListViewItem(item)); 113 106 AdjustListViewColumnSizes(); 114 if (Sorting != SortOrder.None) 115 SortItemsListView(Sorting); 107 SortItemsListView(SortOrder.Ascending); 116 108 } 117 109 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/CheckedTransformationListView.Designer.cs
r10901 r10902 21 21 22 22 namespace HeuristicLab.DataPreprocessing.Views { 23 partial class CheckedTransformation CollectionView {23 partial class CheckedTransformationListView { 24 24 /// <summary> 25 25 /// Required designer variable. -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/CheckedTransformationListView.cs
r10900 r10902 31 31 32 32 namespace HeuristicLab.DataPreprocessing.Views { 33 [View("CheckedTransformation CollectionView")]33 [View("CheckedTransformationList View")] 34 34 //[Content(typeof(RunCollectionConstraintCollection), true)] 35 [Content(typeof(ICheckedItem Collection<ITransformation>), false)]36 public partial class CheckedTransformation CollectionView : CheckedItemCollectionView<ITransformation> {35 [Content(typeof(ICheckedItemList<ITransformation>), false)] 36 public partial class CheckedTransformationListView : CheckedItemListView<ITransformation> { 37 37 38 public CheckedTransformation CollectionView() {38 public CheckedTransformationListView() { 39 39 InitializeComponent(); 40 40 itemsGroupBox.Text = "Transformations"; 41 Sorting = SortOrder.None;42 41 } 43 42 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/HeuristicLab.DataPreprocessing.Views-3.3.csproj
r10882 r10902 70 70 <DependentUpon>CheckedFilterCollectionView.cs</DependentUpon> 71 71 </Compile> 72 <Compile Include="CheckedTransformation CollectionView.cs">73 <SubType>UserControl</SubType> 74 </Compile> 75 <Compile Include="CheckedTransformation CollectionView.Designer.cs">76 <DependentUpon>CheckedTransformation CollectionView.cs</DependentUpon>72 <Compile Include="CheckedTransformationListView.cs"> 73 <SubType>UserControl</SubType> 74 </Compile> 75 <Compile Include="CheckedTransformationListView.Designer.cs"> 76 <DependentUpon>CheckedTransformationListView.cs</DependentUpon> 77 77 </Compile> 78 78 <Compile Include="ComparisonFilterView.cs"> -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/TransformationView.Designer.cs
r10786 r10902 47 47 /// </summary> 48 48 private void InitializeComponent() { 49 this.transformation CollectionView = new HeuristicLab.DataPreprocessing.Views.CheckedTransformationCollectionView();49 this.transformationListView = new HeuristicLab.DataPreprocessing.Views.CheckedTransformationListView(); 50 50 this.applyButton = new System.Windows.Forms.Button(); 51 51 this.SuspendLayout(); 52 52 // 53 // transformation CollectionView53 // transformationListView 54 54 // 55 this.transformation CollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)56 | System.Windows.Forms.AnchorStyles.Left) 55 this.transformationListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 56 | System.Windows.Forms.AnchorStyles.Left) 57 57 | System.Windows.Forms.AnchorStyles.Right))); 58 this.transformationCollectionView.Caption = "Transformations"; 59 this.transformationCollectionView.Content = null; 60 this.transformationCollectionView.Location = new System.Drawing.Point(0, 0); 61 this.transformationCollectionView.Name = "transformationCollectionView"; 62 this.transformationCollectionView.ReadOnly = false; 63 this.transformationCollectionView.ShowDetails = true; 64 this.transformationCollectionView.Size = new System.Drawing.Size(627, 482); 65 this.transformationCollectionView.TabIndex = 0; 58 this.transformationListView.Caption = "Transformations"; 59 this.transformationListView.Content = null; 60 this.transformationListView.Location = new System.Drawing.Point(0, 0); 61 this.transformationListView.Name = "transformationListView"; 62 this.transformationListView.ReadOnly = false; 63 this.transformationListView.Size = new System.Drawing.Size(627, 482); 64 this.transformationListView.TabIndex = 0; 66 65 // 67 66 // applyButton … … 81 80 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 82 81 this.Controls.Add(this.applyButton); 83 this.Controls.Add(this.transformation CollectionView);82 this.Controls.Add(this.transformationListView); 84 83 this.Name = "TransformationView"; 85 84 this.Size = new System.Drawing.Size(627, 514); … … 89 88 90 89 #endregion 91 private CheckedTransformation CollectionView transformationCollectionView;90 private CheckedTransformationListView transformationListView; 92 91 private System.Windows.Forms.Button applyButton; 93 92 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/TransformationView.cs
r10819 r10902 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Windows.Forms; 24 25 using HeuristicLab.MainForm; … … 43 44 base.OnContentChanged(); 44 45 if (Content == null) { 45 transformation CollectionView.Content = null;46 transformationListView.Content = null; 46 47 } else { 47 transformation CollectionView.Content = Content.CheckedTransformationCollection;48 transformationListView.Content = Content.CheckedTransformationList; 48 49 } 49 50 } 50 51 51 52 private void applyButton_Click(object sender, EventArgs e) { 52 var transformations = Content.CheckedTransformation Collection.CheckedItems;53 var transformations = Content.CheckedTransformationList.CheckedItems.Select(x => x.Value); 53 54 54 55 var transformator = new PreprocessingTransformator(Content.Data); … … 56 57 bool success = transformator.ApplyTransformations(transformations, out errorMsg); 57 58 if (success) { 58 Content.CheckedTransformation Collection.Clear();59 Content.CheckedTransformationList.Clear(); 59 60 MessageBox.Show(this, "Transformations applied.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); 60 61 } else { -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/TransformationContent.cs
r10814 r10902 31 31 public IPreprocessingData Data { get; private set; } 32 32 33 public ICheckedItem Collection<ITransformation> CheckedTransformationCollection{ get; private set; }33 public ICheckedItemList<ITransformation> CheckedTransformationList { get; private set; } 34 34 35 35 public TransformationContent(IPreprocessingData data) { 36 36 Data = data; 37 CheckedTransformation Collection = new CheckedItemCollection<ITransformation>();37 CheckedTransformationList = new CheckedItemList<ITransformation>(); 38 38 } 39 39 … … 41 41 : base(original, cloner) { 42 42 Data = original.Data; 43 CheckedTransformation Collection = new CheckedItemCollection<ITransformation>(original.CheckedTransformationCollection);43 CheckedTransformationList = new CheckedItemList<ITransformation>(original.CheckedTransformationList); 44 44 } 45 45
Note: See TracChangeset
for help on using the changeset viewer.