コード例 #1
0
ファイル: ZooWorker.cs プロジェクト: Adamchuk-Helen/Zoo
 public void Worker_Must_Doing(Animals animal)
 {
     Console.WriteLine($"\nWorker {name} must give to eat to {animal.type} {animal.name} {animal.WhatEat}");
 }
コード例 #2
0
 private void buttonAnimals_Click(object sender, EventArgs e)
 {
     Animals.ShowAllAnimals(sqlConnection, dataGridViewZoo);
 }
コード例 #3
0
 public void Watch(ZooWorker worker, Animals animals)
 {
     Console.WriteLine($"\nThe worker {worker.name} looking for {animals.type} {animals.name}");
 }
コード例 #4
0
 private void buttonOneMoreAnimal_Click(object sender, EventArgs e)
 {
     //Animals.AddOneMore(sqlConnection, dataGridViewZoo, comboBoxSpecies.Text);
     Animals.AddMore(sqlConnection, dataGridViewZoo, comboBoxSpecies.Text, Int32.Parse(textBoxNimberOfNewAnimals.Text));
 }