예제 #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
 public VanzareAccesorii(AccesoriiCatei frm, string denumire, int pret, Meniu meniu)
 {
     InitializeComponent();
     this.frm          = frm;
     this.meniu        = meniu;
     this.label14.Text = denumire;
     this.label15.Text = pret.ToString();
     osul9             = new OS(650, 370, DogShop.Properties.Resources.iesire3, 130, 70);
     osul10            = new OS(640, 290, DogShop.Properties.Resources.comanda_noua, 155, 80);
     osul11            = new OS(640, 210, DogShop.Properties.Resources.trimite_comanda, 155, 80);
 }