//ФОРМА СО ВСЕМИ ПЛОЩАДКАМИ private void button1_Click(object sender, EventArgs e) { plashadka fm = new plashadka(); panel1.Controls.Clear(); panel1.Controls.Add(fm); }
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { UserControl f = new UserControl(); if (e.Node.Text == "исполнители") { f = new parts(); panel1.Controls.Clear(); panel1.Controls.Add(f); } if (e.Node.Text == "главная") { f = new mainCntrl(panel1); panel1.Controls.Clear(); panel1.Controls.Add(f); } if (e.Node.Text == "площадки") { f = new plashadka(); panel1.Controls.Clear(); panel1.Controls.Add(f); } if (e.Node.Level == 1 && e.Node.Parent.Text == "мерч")//а че а куда { f = new merchh(e.Node.Text); panel1.Controls.Clear(); panel1.Controls.Add(f); } if (e.Node.Level == 1 && e.Node.Parent.Text == "исполнители") { f = new participants(e.Node.Text); panel1.Controls.Clear(); panel1.Controls.Add(f); } if (e.Node.Level == 1 && e.Node.Parent.Text == "площадки") { f = new ploshka(e.Node.Text); panel1.Controls.Clear(); panel1.Controls.Add(f); } }