Ejemplo n.º 1
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            ploshka f = new ploshka(plosh);

            Program.panel1.Controls.Clear();
            Program.panel1.Controls.Add(f);
        }
Ejemplo n.º 2
0
        private static void button3_Click(object sender, EventArgs e)
        {
            Label   lbl = (Label)sender;
            ploshka f   = new ploshka(lbl.Text);

            Program.panel1.Controls.Clear();
            Program.panel1.Controls.Add(f);
        }
Ejemplo n.º 3
0
        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);
            }
        }