static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(Frm_Main.GetMainForm()); }
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); }