Ejemplo n.º 1
0
        private void modifierAnimal_Click(object sender, EventArgs e)
        {
            InscriptionAnimalInterface modifyAnimal = new InscriptionAnimalInterface(animal, null, null);

            modifyAnimal.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
 private void edit_Click(object sender, EventArgs e)
 {
     if (allAnimauxList.SelectedItems.Count > 0)
     {
         selectedLine = allAnimauxList.SelectedItems[0].Text;
         int     id             = int.Parse(selectedLine.Split('.')[0]);
         Animaux selectedAnimal = getAnimaux(id);
         InscriptionAnimalInterface modifyAnimal = new InscriptionAnimalInterface(selectedAnimal, this, null);
         modifyAnimal.Show();
     }
 }
Ejemplo n.º 3
0
 private void modifierToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     int     id       = int.Parse(this.allAnimalsClient.SelectedItems[0].Text);
     Animaux myAnimal = _db.Animaux.Find(id);
     InscriptionAnimalInterface toShow = new  InscriptionAnimalInterface(myAnimal, null, client);
 }
Ejemplo n.º 4
0
        private void addAnimalButton_Click(object sender, EventArgs e)
        {
            InscriptionAnimalInterface toShow = new InscriptionAnimalInterface(null, null, client);

            toShow.Show();
        }