Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();

            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(Frm_Main.GetMainForm());
        }
Exemplo n.º 2
0
        public static Frm_Main GetMainForm()
        {
            if (m_Frm_Main == null)
            {
                m_Frm_Main = new Frm_Main();
            }

            return m_Frm_Main;
        }
Exemplo n.º 3
0
        public static Frm_Main GetMainForm()
        {
            if (m_Frm_Main == null)
            {
                m_Frm_Main = new Frm_Main();
            }

            return(m_Frm_Main);
        }
Exemplo n.º 4
0
        private void treeViewTask_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Point    pos       = new Point(e.X, e.Y);
            TreeNode nodeClick = this.treeViewTask.GetNodeAt(pos);

            if (nodeClick.Text == "CSharpGoWinFormWinForm")
            {
                return;
            }
            if (nodeClick != null && e.Button == MouseButtons.Left)
            {
                int nTag = (int)nodeClick.Tag;
                if (nTag == 0)
                {
                    return;
                }
                this.treeViewTask.SelectedNode = nodeClick;

                //LoadInfoByNode();
            }

            //ShowContent((string)this.treeViewTask.SelectedNode.Parent.Text + "\\" + (string)this.treeViewTask.SelectedNode.Text);
            Frm_Main.GetMainForm().ShowContent(this.treeViewTask.SelectedNode.Text);
        }