Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        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();
        }