示例#1
0
 public void SetupApp()
 {
     workerBeeJob.SelectedIndex = 0;
     Worker[] workers = new Worker[4];
     workers[0] = new Worker(new string[] { "Zbieranie nektaru", "Wytwarzanie miodu"});
     _queen = new Queen(workers);
 }
示例#2
0
文件: Form1.cs 项目: Lorrides/Beehive
        public Form1()
        {
            InitializeComponent();

            Worker[] workers = new Worker[4];
            workers[0] = new Worker(new string[] { "Nectar collector", "Honey manufacturing" }, 175);
            workers[1] = new Worker(new string[] { "Egg care", "Baby bee tutoring" }, 114);
            workers[2] = new Worker(new string[] { "Hive maintenance", "Sting patrol" }, 149);
            workers[3] = new Worker(new string[] { "Nectar collector", "Honey manufacturing",
            "Egg care", "Baby bee tutoring", "Hive maintenance", "Sting patrol" }, 155);
            queen = new Queen(workers);
        }
示例#3
0
文件: Form1.cs 项目: ppaier/HFCSharp
        public Form1()
        {
            InitializeComponent();
            jobs = new string[] { "Nectar collector" , "Honey manufactoring", "Egg care",
                                  "Baby bee tutoring", "Hive maintenance", "Sting patrol" };

            foreach(string j in jobs)
            {
                comboBoxJobs.Items.Add(j);
            }
            comboBoxJobs.Sorted = true;
            comboBoxJobs.SelectedIndex = 0;

            Worker[] workers = new Worker[4];
            workers[0] = new Worker(new string[] { jobs[0], jobs[1] }, 175);
            workers[1] = new Worker(new string[] { jobs[2], jobs[3] }, 114);
            workers[2] = new Worker(new string[] { jobs[4], jobs[5] }, 149);
            workers[3] = new Worker(new string[] { jobs[0], jobs[1], jobs[2], jobs[3], jobs[4], jobs[5] }, 155);

            queen = new Queen(workers, 275);
        }
示例#4
0
文件: Queen.cs 项目: ppaier/HFCSharp
 public Queen(Worker [] w, double weight)
     : base(weight)
 {
     workers = w;
 }
示例#5
0
文件: Queen.cs 项目: Lorrides/Beehive
 public Queen(Worker[] workers):base(275)
 {
     this.workers = workers;
 }