Changeset 10382 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/LineChartView.cs
- Timestamp:
- 01/22/14 16:32:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/LineChartView.cs
r10377 r10382 19 19 public partial class LineChartView : ItemView { 20 20 21 private DataTable dataTable;22 23 21 public LineChartView() { 24 22 InitializeComponent(); … … 26 24 27 25 private void InitDataTable() { 28 dataTable = new DataTable("LineChart");29 26 ILineChartLogic logic = Content.LineChartLogic; 30 logic.FillDataTable(dataTable);27 viewHost.Content = logic.GetDataTable(); 31 28 } 32 29 … … 41 38 InitDataTable(); 42 39 InitVariablesListBox(); 43 viewHost.Content = dataTable;44 45 40 } 46 41 } … … 49 44 ILineChartLogic logic = Content.LineChartLogic; 50 45 51 //foreach (var variableName in logic.GetVariableNames()) {52 //variablesListBox.Items.Add(variableName,true);53 //}46 foreach (var variableName in logic.GetVariableNames()) { 47 variablesListBox.Items.Add(variableName,true); 48 } 54 49 } 55 50 56 51 private void variablesListBox_ItemCheck(object sender, ItemCheckEventArgs e) { 57 //string item = variablesListBox.Items[e.Index] as string;52 string item = variablesListBox.Items[e.Index] as string; 58 53 54 55 if (e.NewValue == CheckState.Checked && !Content.LineChartLogic.VariableIsDisplayed(item)) 56 Content.LineChartLogic.AddVariable(item); 57 else if(e.NewValue == CheckState.Unchecked && Content.LineChartLogic.VariableIsDisplayed(item)) 58 Content.LineChartLogic.RemoveVariable(item); 59 59 } 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.