- Timestamp:
- 08/03/09 14:23:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/3.2/DatasetView.cs
r2124 r2223 37 37 : base() { 38 38 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 50 39 // format all cells with the round-trip formatter to make sure that values that are exported and imported to 51 40 // another C# app (HL2) have the same numeric value … … 60 49 : this() { 61 50 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 } 62 60 } 63 61
Note: See TracChangeset
for help on using the changeset viewer.