private void addButton_Click(object sender, EventArgs e)
 {
     if (this.controller.AvailableSources().Any())
     {
         using (var form = new FormPickColonizationSource(controller))
             if (form.ShowDialog() == DialogResult.OK)
             {
                 controller.StartColonization(form.SelectedSource);
                 updateView();
             }
     }
 }
Exemplo n.º 2
0
        private void controlButton_Click(object sender, EventArgs e)
        {
            if (controller.IsColonizing)
            {
                controller.StopColonization(sourceData);
            }
            else
            {
                controller.StartColonization(sourceData);
            }

            updateView();

            if (OnStateChange != null)
            {
                OnStateChange();
            }
        }