Example #1
0
 private void MoveBeeFromFieldToHive(BeeControl beeControl)
 {
     fieldForm.Controls.Remove(beeControl);
     beeControl.Size = new Size(40, 40);
     hiveForm.Controls.Add(beeControl);
     beeControl.BringToFront();
 }
Example #2
0
 private void MoveBeeFromHiveToField(BeeControl beeControl)
 {
     hiveForm.Controls.Remove(beeControl);
     beeControl.Size = new Size(20, 20);
     fieldForm.Controls.Add(beeControl);
     beeControl.BringToFront();
 }
Example #3
0
        private BeeControl GetBeeControl(Bee bee)
        {
            BeeControl beeControl;

            if (!beeLookup.ContainsKey(bee))
            {
                beeControl = new BeeControl()
                {
                    Width = 40, Height = 40
                };
                beeLookup.Add(bee, beeControl);
                hiveForm.Controls.Add(beeControl);
                beeControl.BringToFront();
            }
            else
            {
                beeControl = beeLookup[bee];
            }
            return(beeControl);
        }
Example #4
0
 private void MoveBeeFromFieldToHive(BeeControl beeControl)
 {
     fieldForm.Controls.Remove(beeControl);
     beeControl.Size = new Size(40, 40);
     hiveForm.Controls.Add(beeControl);
     beeControl.BringToFront();
 }
Example #5
0
 private void MoveBeeFromHiveToField(BeeControl beeControl)
 {
     hiveForm.Controls.Remove(beeControl);
     beeControl.Size = new Size(20, 20);
     fieldForm.Controls.Add(beeControl);
     beeControl.BringToFront();
 }
Example #6
0
 private BeeControl GetBeeControl(Bee bee)
 {
     BeeControl beeControl;
     if (!beeLookup.ContainsKey(bee))
     {
         beeControl = new BeeControl() { Width = 40, Height = 40 };
         beeLookup.Add(bee, beeControl);
         hiveForm.Controls.Add(beeControl);
         beeControl.BringToFront();
     }
     else
         beeControl = beeLookup[bee];
     return beeControl;
 }