Beispiel #1
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (timer.IsEnabled)
         {
             timer.Stop();
         }
         else
         {
             timer.Start();
         }
     }
     else if (e.Key == Key.Space)
     {
         GoLV.StepGeneration();
         GenerationLabel.Content = "Generation " + GoLV.Generation;
     }
 }
Beispiel #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     GoLV.StepGeneration();
     GenerationLabel.Content = "Generation " + GoLV.Generation;
 }
Beispiel #3
0
 private void Next(object sender, EventArgs e)
 {
     GoLV.StepGeneration();
     GenerationLabel.Content = "Generation " + GoLV.Generation;
 }