protected override void OnContentChanged() {
      base.OnContentChanged();
      if (Content != null) {
        var data = Content.Data;
        var filterLogic = new FilterLogic(data);
        var searchLogic = new SearchLogic(data, filterLogic);
        var statisticsLogic = new StatisticsLogic(data, searchLogic);
        var manipulationLogic = new ManipulationLogic(data, searchLogic, statisticsLogic);

        var viewShortcuts = new ItemList<IViewShortcut> {
          new DataGridContent(data, manipulationLogic, filterLogic),
          new StatisticsContent(statisticsLogic),

          new LineChartContent(data),
          new HistogramContent(data),
          new ScatterPlotContent(data),
          new CorrelationMatrixContent(Content),
          new DataCompletenessChartContent(searchLogic),
          
          new FilterContent(filterLogic),
          new ManipulationContent(manipulationLogic, searchLogic, filterLogic),
          new TransformationContent(data, filterLogic)
        };

        viewShortcutListView.Content = viewShortcuts.AsReadOnly();

        viewShortcutListView.ItemsListView.Items[0].Selected = true;
        viewShortcutListView.Select();

      } else {
        viewShortcutListView.Content = null;
      }
    }
        protected override void OnContentChanged()
        {
            base.OnContentChanged();
            if (Content != null)
            {
                var data              = Content.Data;
                var filterLogic       = new FilterLogic(data);
                var searchLogic       = new SearchLogic(data, filterLogic);
                var statisticsLogic   = new StatisticsLogic(data, searchLogic);
                var manipulationLogic = new ManipulationLogic(data, searchLogic, statisticsLogic);

                var viewShortcuts = new ItemList <IViewShortcut> {
                    new DataGridContent(data, manipulationLogic, filterLogic),
                    new StatisticsContent(statisticsLogic),

                    new LineChartContent(data),
                    new HistogramContent(data),
                    new ScatterPlotContent(data),
                    new CorrelationMatrixContent(Content),
                    new DataCompletenessChartContent(searchLogic),

                    new FilterContent(filterLogic),
                    new ManipulationContent(manipulationLogic, searchLogic, filterLogic),
                    new TransformationContent(data, filterLogic)
                };

                viewShortcutListView.Content = viewShortcuts.AsReadOnly();
                viewShortcutListView.ItemsListView.Items[0].Selected = true;
                viewShortcutListView.Select();

                applyTypeContextMenuStrip.Items.Clear();
                exportTypeContextMenuStrip.Items.Clear();
                foreach (var exportOption in Content.GetSourceExportOptions())
                {
                    var applyMenuItem = new ToolStripMenuItem(exportOption.Key)
                    {
                        Tag = exportOption.Value
                    };
                    applyMenuItem.Click += applyToolStripMenuItem_Click;
                    applyTypeContextMenuStrip.Items.Add(applyMenuItem);

                    var exportMenuItem = new ToolStripMenuItem(exportOption.Key)
                    {
                        Tag = exportOption.Value
                    };
                    exportMenuItem.Click += exportToolStripMenuItem_Click;
                    exportTypeContextMenuStrip.Items.Add(exportMenuItem);
                }
                var exportCsvMenuItem = new ToolStripMenuItem(".csv");
                exportCsvMenuItem.Click += exportCsvMenuItem_Click;
                exportTypeContextMenuStrip.Items.Add(exportCsvMenuItem);
            }
            else
            {
                viewShortcutListView.Content = null;
            }
        }
        protected override void OnContentChanged()
        {
            base.OnContentChanged();
            if (Content != null)
            {
                var data              = Content.Data;
                var filterLogic       = new FilterLogic(data);
                var searchLogic       = new SearchLogic(data, filterLogic);
                var statisticsLogic   = new StatisticsLogic(data, searchLogic);
                var manipulationLogic = new ManipulationLogic(data, searchLogic, statisticsLogic);

                var viewShortcuts = new ItemList <IViewShortcut> {
                    new DataGridContent(data, manipulationLogic, filterLogic),
                    new StatisticsContent(statisticsLogic),

                    new LineChartContent(data),
                    new HistogramContent(data),
                    new ScatterPlotContent(data),
                    new CorrelationMatrixContent(Content),
                    new DataCompletenessChartContent(searchLogic),

                    new FilterContent(filterLogic),
                    new ManipulationContent(manipulationLogic, searchLogic, filterLogic),
                    new TransformationContent(data, filterLogic)
                };

                viewShortcutListView.Content = viewShortcuts.AsReadOnly();

                viewShortcutListView.ItemsListView.Items[0].Selected = true;
                viewShortcutListView.Select();
            }
            else
            {
                viewShortcutListView.Content = null;
            }
        }
Exemplo n.º 4
0
 public ManipulationContent(ManipulationLogic theManipulationLogic, SearchLogic theSearchLogic, FilterLogic theFilterLogic) {
   manipulationLogic = theManipulationLogic;
   searchLogic = theSearchLogic;
   filterLogic = theFilterLogic;
 }
Exemplo n.º 5
0
 public DataGridContent(ITransactionalPreprocessingData preProcessingData, ManipulationLogic theManipulationLogic, FilterLogic theFilterLogic) {
   ManipulationLogic = theManipulationLogic;
   FilterLogic = theFilterLogic;
   PreProcessingData = preProcessingData;
 }