Changeset 2223 for trunk/sources/HeuristicLab.DataAnalysis
- Timestamp:
- 08/03/09 14:23:54 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.DataAnalysis/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs
r2222 r2223 111 111 112 112 private string[] variableNames; 113 public IEnumerable<string> VariableNames { 114 get { return variableNames; } 115 } 113 116 114 117 public Dataset() { … … 123 126 fireChangeEvents = true; 124 127 } 128 129 125 130 126 131 public string GetVariableName(int variableIndex) { -
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.