public void Initialize(TireDataSetSelector selector, Table table, PropertyPage.DataSelectorProperty p) { Table = table; Selector = selector; property = p; var maxmin = selector.Maxmin(Table); foreach (TireDataColumn column in Enum.GetValues(typeof(TireDataColumn))) { if (column == TireDataColumn.NT) { continue; } var node = new TreeNode(TireData.ColumnFormal[column]); SelectorTreeView.Nodes.Add(node); node.ContextMenuStrip = new ContextMenuStrip(); node.ContextMenuStrip.Items.Add( new ToolStripMenuItem( "制約の追加", null, delegate(object sender, EventArgs e) { AddNewConstrain(column, node); } ) ); var list = Selector.Constrains(Table)[column]; foreach (var constrain in list) { AddConstrainToNode(column, node, constrain); } } }
public void Initialize(TireDataSetSelector selector, Table table, DataSelectorProperty p) { property = p; Table = table; selector.ExtractedDataChanged += OnExtractedDataChanged; Selector.Initialize(selector, table, p); Selector.SelectedAreaChanged += delegate(TireDataSetSelector s) { ShowGraph(s); }; SetDataList(selector); }