Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     workerBeeJobComboBox.SelectedIndex = 0;
     Worker[] workers = new Worker[4];
     workers[0] = new Worker(new string[] {"Zbieranie nektaru", "Wytwarzanie miodu"});
     workers[1] = new Worker(new string[] {"Pielęgnacja jaj", "Nauczanie pszczółek"});
     workers[2] = new Worker(new string[] {"Utrzymywanie ula", "Patrol z żądłami"});
     workers[3] = new Worker(new string[] { "Zbieranie nektaru", "Wytwarzanie miodu", "Pielęgnacja jaj", "Nauczanie pszczółek",
         "Utrzymywanie ula", "Patrol z żądłami"});
     queen = new Queen(workers);
 }
Exemplo n.º 2
0
 public Queen(Worker[] workers)
 {
     this.workers = workers;
 }