- Timestamp:
- 07/03/17 10:57:53 (7 years ago)
- Location:
- trunk/sources/HeuristicLab.DataPreprocessing.Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing.Views
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs
r14185 r15110 36 36 [Content(typeof(PreprocessingContext), true)] 37 37 public partial class DataPreprocessingView : NamedItemView { 38 39 public DataPreprocessingView() {40 InitializeComponent();41 }42 43 38 public new PreprocessingContext Content { 44 39 get { return (PreprocessingContext)base.Content; } 45 40 set { base.Content = value; } 41 } 42 43 public DataPreprocessingView() { 44 InitializeComponent(); 46 45 } 47 46 … … 57 56 var viewShortcuts = new ItemList<IViewShortcut> { 58 57 new DataGridContent(data, manipulationLogic, filterLogic), 59 new StatisticsContent( statisticsLogic),58 new StatisticsContent(data, statisticsLogic), 60 59 61 60 new LineChartContent(data), 62 61 new HistogramContent(data), 63 new ScatterPlotContent(data), 62 new SingleScatterPlotContent(data), 63 new MultiScatterPlotContent(data), 64 64 new CorrelationMatrixContent(Content), 65 65 new DataCompletenessChartContent(searchLogic), … … 125 125 } 126 126 private void newRegressionToolStripMenuItem_Click(object sender, EventArgs e) { 127 Content.Import(new RegressionProblemData()); 127 if (CheckNew("Regression")) 128 Content.Import(new RegressionProblemData()); 128 129 } 129 130 private void newClassificationToolStripMenuItem_Click(object sender, EventArgs e) { 130 Content.Import(new ClassificationProblemData()); 131 if (CheckNew("Classification")) 132 Content.Import(new ClassificationProblemData()); 131 133 } 132 134 private void newTimeSeriesToolStripMenuItem_Click(object sender, EventArgs e) { 133 Content.Import(new TimeSeriesPrognosisProblemData()); 135 if (CheckNew("Time Series Prognosis")) 136 Content.Import(new TimeSeriesPrognosisProblemData()); 137 } 138 139 private bool CheckNew(string type) { 140 return DialogResult.OK == MessageBox.Show( 141 this, 142 string.Format("When creating a new {0}, all previous information will be lost.", type), 143 "Continue?", 144 MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); 134 145 } 135 146 #endregion
Note: See TracChangeset
for help on using the changeset viewer.