Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/17 10:57:53 (7 years ago)
Author:
pfleck
Message:

#2709: merged branch to trunk

Location:
trunk/sources/HeuristicLab.DataPreprocessing.Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing.Views

  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs

    r14185 r15110  
    3636  [Content(typeof(PreprocessingContext), true)]
    3737  public partial class DataPreprocessingView : NamedItemView {
    38 
    39     public DataPreprocessingView() {
    40       InitializeComponent();
    41     }
    42 
    4338    public new PreprocessingContext Content {
    4439      get { return (PreprocessingContext)base.Content; }
    4540      set { base.Content = value; }
     41    }
     42
     43    public DataPreprocessingView() {
     44      InitializeComponent();
    4645    }
    4746
     
    5756        var viewShortcuts = new ItemList<IViewShortcut> {
    5857          new DataGridContent(data, manipulationLogic, filterLogic),
    59           new StatisticsContent(statisticsLogic),
     58          new StatisticsContent(data, statisticsLogic),
    6059
    6160          new LineChartContent(data),
    6261          new HistogramContent(data),
    63           new ScatterPlotContent(data),
     62          new SingleScatterPlotContent(data),
     63          new MultiScatterPlotContent(data),
    6464          new CorrelationMatrixContent(Content),
    6565          new DataCompletenessChartContent(searchLogic),
     
    125125    }
    126126    private void newRegressionToolStripMenuItem_Click(object sender, EventArgs e) {
    127       Content.Import(new RegressionProblemData());
     127      if (CheckNew("Regression"))
     128        Content.Import(new RegressionProblemData());
    128129    }
    129130    private void newClassificationToolStripMenuItem_Click(object sender, EventArgs e) {
    130       Content.Import(new ClassificationProblemData());
     131      if (CheckNew("Classification"))
     132        Content.Import(new ClassificationProblemData());
    131133    }
    132134    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);
    134145    }
    135146    #endregion
Note: See TracChangeset for help on using the changeset viewer.