static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(Frm_Main.GetMainForm()); }
public static Frm_Main GetMainForm() { if (m_Frm_Main == null) { m_Frm_Main = new Frm_Main(); } return m_Frm_Main; }
public static Frm_Main GetMainForm() { if (m_Frm_Main == null) { m_Frm_Main = new Frm_Main(); } return(m_Frm_Main); }
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); }