Пример #1
0
 private void Button2_Click(object sender, EventArgs e)
 {
     if (loc == "temperatura")
     {
         temperatura m = new temperatura();
         m.Show();
         this.Hide();
     }
     else if (loc == "povrsina")
     {
         povrsina m = new povrsina();
         m.Show();
         this.Hide();
     }
     else if (loc == "dolzina")
     {
         dolzina m = new dolzina();
         m.Show();
         this.Hide();
     }
     else if (loc == "prostornina")
     {
         Prostornina m = new Prostornina();
         m.Show();
         this.Hide();
     }
     else
     {
         Form1 m = new Form1();
         m.Show();
         this.Hide();
     }
 }
Пример #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            dolzina m = new dolzina();

            m.Show();
            this.Hide();
        }