Пример #1
0
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.X > 40 && e.X < 40 + 160 && e.Y > 95 && e.Y < 95 + 60)
     {
         VizualizareCaini f = new VizualizareCaini(this);
         f.Show();
         this.Hide();
     }
     if (e.X > 40 && e.X < 40 + 160 && e.Y > 175 && e.Y < 175 + 60)
     {
         AccesoriiCatei f = new AccesoriiCatei(this);
         f.Show();
         this.Hide();
     }
     if (e.X > 40 && e.X < 40 + 160 && e.Y > 15 && e.Y < 15 + 60)
     {
         AdaugaCaine f = new AdaugaCaine(this);
         f.Show();
         this.Hide();
     }
     if (e.X > pictureBox1.Width - 120 && e.X < pictureBox1.Width - 120 + 160 && e.Y > 5 && e.Y < 5 + 60)
     {
         Application.Exit();
     }
 }
Пример #2
0
 private void Form4_FormClosing(object sender, FormClosingEventArgs e)
 {
     frm.Show();
     this.Hide();
 }