コード例 #1
0
ファイル: Form1.cs プロジェクト: pepiczech/INPTP
        public Form1()
        {
            InitializeComponent();

            comboBox1.SelectedIndex = 0;

            Worker[] workers = new Worker[]{
                new Worker(new string[] {"Patrol", "Egg care"}),
                new Worker(new string[] {"Baby bee tutoring", "Honey manufacturing"}),
                new Worker(new string[] {"Nectar collector"}),
                new Worker(new string[] {"Honey manufacturing", "Patrol", "Nectar collector"})

            };

            queen = new Queen(workers);
        }
コード例 #2
0
ファイル: Queen.cs プロジェクト: pepiczech/INPTP
 public Queen(Worker[] workers)
 {
     this.workers = workers;
 }