Beispiel #1
0
 public FindAnimal(NameLabelWriter wrt)
 {
     InitializeComponent();
     animals  = new List <Animal>();
     this.wrt = wrt;
     lbAnimalsToPrint.Items.Clear();
     foreach (Animal animal in wrt.animalsToPrint)
     {
         lbAnimalsToPrint.Items.Add(animal);
     }
 }
Beispiel #2
0
 public DeleteAnimal(NameLabelWriter wrt)
 {
     this.wrt     = wrt;
     foundAnimals = new List <Animal>();
     allAnimals   = new List <Animal>();
     InitializeComponent();
     lbAllAnimals.Items.Clear();
     foreach (Animal animal in wrt.animalRepo.getAllAnimals())
     {
         allAnimals.Add(animal);
         lbAllAnimals.Items.Add(animal);
     }
 }
Beispiel #3
0
 public MainForm()
 {
     wrt = new NameLabelWriter();
     InitializeComponent();
 }
Beispiel #4
0
 public AddAnimal(NameLabelWriter wrt)
 {
     this.wrt     = wrt;
     animalsToAdd = new List <Animal>();
     InitializeComponent();
 }