Наследование: System.Windows.Forms.Form
Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();

            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(Frm_Main.GetMainForm());
        }
Пример #2
0
        public static Frm_Main GetMainForm()
        {
            if (m_Frm_Main == null)
            {
                m_Frm_Main = new Frm_Main();
            }

            return m_Frm_Main;
        }
Пример #3
0
        public static Frm_Main GetMainForm()
        {
            if (m_Frm_Main == null)
            {
                m_Frm_Main = new Frm_Main();
            }

            return(m_Frm_Main);
        }
Пример #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);
        }