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