public TreeViewNode_RawTireData(TreeView tv, Node_RawTireData impl) : base(tv, impl) { Impl = impl; ContextMenuStrip.Items.Insert(0, new ToolStripMenuItem("セレクタを追加(&A)", null, AddSelector, Keys.A & Keys.Control) ); ContextMenuStrip.Items.Insert(0, new ToolStripMenuItem("回帰曲線を追加(&A)", null, AddMagicFormula, Keys.B & Keys.Control) ); }
void AddRawTireData(object sender, EventArgs e) { ConfirmIfNotUpdated(); var rawDataImpl = new Node_RawTireData( StaticFunctions.GetUniqueName(this.TreeView, "新規データ"), Impl ); var raw = new TreeViewNode_RawTireData( this.TreeView, rawDataImpl ); this.Nodes.Add(raw); this.Expand(); }