Beispiel #1
0
		private void addSourceAction_Click(object sender, EventArgs e)
		{
			using (var form = new FormPickColonizationSource(this.controller))
				if (form.ShowDialog() == DialogResult.OK)
				{
					this.controller.AddColonizationSource(form.SelectedSource);
					this.updateSourceList();
					this.updateSourceButton();
				}
		}
 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();
             }
     }
 }