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(); } } }
private void controlButton_Click(object sender, EventArgs e) { if (controller.IsColonizing) { controller.StopColonization(sourceData); } else { controller.StartColonization(sourceData); } updateView(); if (OnStateChange != null) { OnStateChange(); } }