Пример #1
0
        private void TreeManu_AfterSelect(object sender, TreeViewEventArgs e)
        {
            CountDisplay = 1;
            TreeManu.SelectedNode.Expand();
            SqlGetName = TreeManu.SelectedNode.Name.ToString();
            formshow   = new display(ref SqlGetName);
            //formshow.lblModule.Text = TreeManu.SelectedNode.Text.ToString();
            //formshow.lblDatabase.Text = ConnectDB.Db.ToUpper();
            //formshow.lblServer.Text = ConnectDB.Server.ToUpper();
            //formshow.lblVersion.Text = "1.0";
            //formshow.lblUser.Text = ConnectDB.UserName.ToUpper();
            ShowTreeForm(formshow);

            GC.Collect();
            GC.WaitForFullGCComplete();
        }
Пример #2
0
 private void CallDisplay()
 {
     if (CountDisplay == 0 && SqlGetName.Equals("home"))
     {
         CallDisplayHome();
         return;
     }
     else if (CountDisplay == 0 && !SqlGetName.Equals(""))
     {
         formshow = new display(ref SqlGetName);
         ShowTreeForm(formshow);
         GC.Collect();
         GC.WaitForFullGCComplete();
         CountDisplay = 1;
     }
 }