- Timestamp:
- 06/11/14 12:35:14 (10 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs
r10964 r10977 31 31 public class DataGridContent : Item, IViewShortcut, IDataGridContent { 32 32 33 private readonly IDataGridLogic dataGridLogic; 34 private readonly IManipulationLogic manipulationLogic; 35 private readonly IFilterLogic filterLogic; 36 37 public IManipulationLogic ManipulationLogic { 38 get { return manipulationLogic; } 39 } 40 41 public IDataGridLogic DataGridLogic { 42 get { 43 return dataGridLogic; 44 } 45 } 46 47 public IFilterLogic FilterLogic { 48 get { 49 return filterLogic; 50 } 51 } 33 public IManipulationLogic ManipulationLogic { get; private set; } 34 public IDataGridLogic DataGridLogic { get; private set; } 35 public IFilterLogic FilterLogic { get; private set; } 52 36 53 37 public static new Image StaticItemImage { … … 57 41 public int Rows { 58 42 get { 59 return dataGridLogic.Rows;43 return DataGridLogic.Rows; 60 44 } 61 45 set { … … 66 50 public int Columns { 67 51 get { 68 return dataGridLogic.Columns;52 return DataGridLogic.Columns; 69 53 } 70 54 set { … … 75 59 public IEnumerable<string> ColumnNames { 76 60 get { 77 return dataGridLogic.ColumnNames;61 return DataGridLogic.ColumnNames; 78 62 } 79 63 set { … … 84 68 public IEnumerable<string> RowNames { 85 69 get { 86 return dataGridLogic.RowNames;70 return DataGridLogic.RowNames; 87 71 } 88 72 set { … … 105 89 106 90 public DataGridContent(IDataGridLogic theDataGridLogic, IManipulationLogic theManipulationLogic, IFilterLogic theFilterLogic) { 107 dataGridLogic = theDataGridLogic;108 manipulationLogic = theManipulationLogic;109 filterLogic = theFilterLogic;91 DataGridLogic = theDataGridLogic; 92 ManipulationLogic = theManipulationLogic; 93 FilterLogic = theFilterLogic; 110 94 } 111 95 … … 120 104 121 105 public string GetValue(int rowIndex, int columnIndex) { 122 return dataGridLogic.GetValue(columnIndex, rowIndex);106 return DataGridLogic.GetValue(columnIndex, rowIndex); 123 107 } 124 108 125 109 public bool SetValue(string value, int rowIndex, int columnIndex) { 126 return dataGridLogic.SetValue(value, columnIndex, rowIndex);110 return DataGridLogic.SetValue(value, columnIndex, rowIndex); 127 111 } 128 112 129 113 public event DataPreprocessingChangedEventHandler Changed { 130 add { dataGridLogic.Changed += value; }131 remove { dataGridLogic.Changed -= value; }114 add { DataGridLogic.Changed += value; } 115 remove { DataGridLogic.Changed -= value; } 132 116 } 133 117 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/TransformationContent.cs
r10902 r10977 30 30 31 31 public IPreprocessingData Data { get; private set; } 32 public IFilterLogic FilterLogic { get; private set; } 32 33 33 34 public ICheckedItemList<ITransformation> CheckedTransformationList { get; private set; } 34 35 35 public TransformationContent(IPreprocessingData data) { 36 public static new Image StaticItemImage { 37 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; } 38 } 39 40 public TransformationContent(IPreprocessingData data, IFilterLogic filterLogic) { 36 41 Data = data; 37 42 CheckedTransformationList = new CheckedItemList<ITransformation>(); 43 FilterLogic = filterLogic; 38 44 } 39 45 … … 44 50 } 45 51 46 public static new Image StaticItemImage {47 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; }48 }49 50 52 public override IDeepCloneable Clone(Cloner cloner) { 51 53 return new TransformationContent(this, cloner);
Note: See TracChangeset
for help on using the changeset viewer.