private void button1_Click(object sender, EventArgs e) { this.actimer.Stop(); //this.Hide(); this.Close(); this.Dispose(); //Global.MainForm.Show(); //Global.MainForm.actimer.Start(); GC.Collect(); Formselect frms = new Formselect(); frms.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { Form1.wb.send(@"{ ""body"" : """", ""guid"" : ""M-181"", ""type"" : ""STOPEXHIBITION"" }"); //显示墙,关闭实时控制状态 BuissnesServiceImpl.folderjihe1.Clear(); BuissnesServiceImpl.mediajihe1.Clear(); BuissnesServiceImpl.devicefolderjihe1.Clear(); BuissnesServiceImpl.devicejihe1.Clear(); /* * foreach (FolderInfo fi in BuissnesServiceImpl.folderjihe1) * { * this.treeView2.Nodes[(fi.pId - 11)].Nodes.Clear(); * } */ this.actimer.Stop(); //this.Hide(); /* * for (int id4confirm = 11; id4confirm < 15; id4confirm++) * { * this.treeView2.Nodes[0] = treeView2.SelectedNode; * this.treeView2.Nodes.RemoveByKey(); * } * * foreach(FolderInfo fi in BuissnesServiceImpl.folderjihe1) * { * this.treeView2.Nodes.RemoveByKey(fi.fName); * } */ this.Close(); this.Dispose(); //Global.MainForm.Show(); //Global.MainForm.actimer.Start(); GC.Collect(); Formselect frms = new Formselect(); frms.ShowDialog(); }