Esempio n. 1
0
        private void AiGameBtn_Clicked(object sender, RoutedEventArgs e)
        {
            var aiGame = new AiGame();

            aiGame.Show();
            Close();
        }
Esempio n. 2
0
 private void ResetBtn_Click(object sender, EventArgs e)
 {
     aiGame = new AiGame(null, null);
     countTime.stopWatch();
     gameBox.Visible       = false;
     finishBox.Visible     = false;
     rangeLabel.Text       = "Wybrany Zakres: " + aiGame.GetStartingNumber().ToString() + " - " + aiGame.GetEndingNumber().ToString();
     PickNumberBtn.Enabled = true;
 }
Esempio n. 3
0
 public MainViewModel()
 {
     StartGameCommand = new RelayCommand(() => game = AiGame.NewAiGame(this));
 }
Esempio n. 4
0
 public ComputerForm()
 {
     InitializeComponent();
     aiGame          = new AiGame(null, null);
     rangeLabel.Text = "Wybrany Zakres: " + aiGame.GetStartingNumber().ToString() + " - " + aiGame.GetEndingNumber().ToString();
 }