private void SubMenu_Function_Click(object sender, EventArgs e) { ToolStripMenuItem tm = ((ToolStripMenuItem)sender); string path = tm.Tag.ToString(); string title = tm.Text; DockPanel parentpanel = this.dockPanel; MenuTransfer m = new MenuTransfer(path, title, parentpanel); m.Parse(); }
private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { LinkLabel l = (LinkLabel)sender; string path = l.Tag.ToString(); string title = l.Text; DockPanel parentpanel = this.baseform.Parentdockpanel; MenuTransfer m = new MenuTransfer(path, title, parentpanel); m.Parse(); }
private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (!e.Node.IsSelected) { return; } //BaseForm td = (BaseForm)ComponentLocator.Instance().Resolve(e.Node.Tag.ToString(), typeof(BaseForm)); string path = e.Node.Tag.ToString(); string title = e.Node.Text; DockPanel parentpanel = this.dockpanel; MenuTransfer m = new MenuTransfer(path, title, parentpanel); m.Parse(); }