Changeset 10377 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/LineChartView.cs
- Timestamp:
- 01/22/14 15:56:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/LineChartView.cs
r10303 r10377 3 3 using System.ComponentModel; 4 4 using System.Drawing; 5 using System.Data;6 5 using System.Linq; 7 6 using System.Text; … … 12 11 using HeuristicLab.Problems.DataAnalysis; 13 12 using HeuristicLab.Data.Views; 13 using HeuristicLab.Analysis; 14 14 15 15 namespace HeuristicLab.DataPreprocessing.Views { … … 18 18 [Content(typeof(LineChartContent), false)] 19 19 public partial class LineChartView : ItemView { 20 21 private DataTable dataTable; 22 20 23 public LineChartView() { 21 24 InitializeComponent(); 25 } 26 27 private void InitDataTable() { 28 dataTable = new DataTable("LineChart"); 29 ILineChartLogic logic = Content.LineChartLogic; 30 logic.FillDataTable(dataTable); 22 31 } 23 32 … … 29 38 protected override void OnContentChanged() { 30 39 base.OnContentChanged(); 40 if (Content != null) { 41 InitDataTable(); 42 InitVariablesListBox(); 43 viewHost.Content = dataTable; 44 45 } 46 } 47 48 private void InitVariablesListBox() { 49 ILineChartLogic logic = Content.LineChartLogic; 50 51 //foreach (var variableName in logic.GetVariableNames()) { 52 // variablesListBox.Items.Add(variableName,true); 53 //} 54 } 55 56 private void variablesListBox_ItemCheck(object sender, ItemCheckEventArgs e) { 57 //string item = variablesListBox.Items[e.Index] as string; 58 31 59 } 32 60 }
Note: See TracChangeset
for help on using the changeset viewer.