Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/09 14:23:54 (15 years ago)
Author:
mkommend
Message:

reintegrated branch new heuristic.modeling database backend (ticket #712)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataAnalysis/3.2/DatasetView.cs

    r2124 r2223  
    3737      : base() {
    3838      InitializeComponent();
    39       DiscoveryService discovery = new DiscoveryService();
    40       IDatasetManipulator[] manipuators = discovery.GetInstances<IDatasetManipulator>();
    41       contextMenuStrip.Items.Add(new ToolStripSeparator());
    42       foreach(IDatasetManipulator manipulator in manipuators) {
    43         contextMenuStrip.Items.Add(new ToolStripButton(manipulator.Action,null , delegate(object source, EventArgs args)
    44           {
    45             manipulator.Execute(Dataset);
    46             Refresh();
    47           }));
    48       }
    49      
    5039      // format all cells with the round-trip formatter to make sure that values that are exported and imported to
    5140      // another C# app (HL2) have the same numeric value
     
    6049      : this() {
    6150      this.Dataset = dataset;
     51      DiscoveryService discovery = new DiscoveryService();
     52      IDatasetManipulator[] manipuators = discovery.GetInstances<IDatasetManipulator>();
     53      contextMenuStrip.Items.Add(new ToolStripSeparator());
     54      foreach (IDatasetManipulator manipulator in manipuators) {
     55        contextMenuStrip.Items.Add(new ToolStripButton(manipulator.Action, null, delegate(object source, EventArgs args) {
     56          manipulator.Execute(Dataset);
     57          Refresh();
     58        }));
     59      }     
    6260    }
    6361
Note: See TracChangeset for help on using the changeset viewer.