Exemplo n.º 1
0
        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (e.Node.Name == "Standard")
            {
                lbltitle.Text     = "Standard";
                treeView1.Visible = false;
                Standard S = new Standard();
                this.Hide();
                S.ShowDialog();
            }
            if (e.Node.Name == "Scientific")
            {
                lbltitle.Text     = "Scientific";
                treeView1.Visible = false;

                Scientific S = new Scientific();
                this.Hide();
                S.ShowDialog();
            }
            if (e.Node.Name == "Programmer")
            {
                lbltitle.Text     = "Programmer";
                treeView1.Visible = false;

                Programmer P = new Programmer();
                this.Hide();
                P.ShowDialog();
            }
            if (e.Node.Name == "Temperature")
            {
                lbltitle.Text     = "Temperature";
                treeView1.Visible = false;

                Temp T = new Temp();
                this.Hide();
                T.ShowDialog();
            }

            if (e.Node.Name == "Fibonacci")
            {
                lbltitle.Text     = "Fibonacci";
                treeView1.Visible = false;

                Fibonacci F = new Fibonacci();
                this.Hide();
                F.ShowDialog();
            }
            if (e.Node.Name == "Matrix")
            {
                lbltitle.Text     = "Matrix";
                treeView1.Visible = false;

                Matrix M = new Matrix();
                this.Hide();
                M.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (e.Node.Name == "Standard")
            {
                lbltitle.Text     = "Standard";
                treeView1.Visible = false;
                Standard S = new Standard();
                this.Hide();
                S.ShowDialog();
            }
            if (e.Node.Name == "Scientific")
            {
                lbltitle.Text     = "Scientific";
                treeView1.Visible = false;

                Scientific S = new Scientific();
                this.Hide();
                S.ShowDialog();
            }
            if (e.Node.Name == "Programmer")
            {
                lbltitle.Text     = "Programmer";
                treeView1.Visible = false;

                Programmer P = new Programmer();
                this.Hide();
                P.ShowDialog();
            }

            if (e.Node.Name == "Length")
            {
                lbltitle.Text     = "Length";
                treeView1.Visible = false;

                Length L = new Length();
                this.Hide();
                L.ShowDialog();
            }

            if (e.Node.Name == "Matrix")
            {
                lbltitle.Text     = "Matrix";
                treeView1.Visible = false;

                Matrix M = new Matrix();
                this.Hide();
                M.ShowDialog();
            }
        }