private void StartGame(object sender, RoutedEventArgs e) { count = 0; timeDate = DateTime.Now; //текущее время timer1.Start(); game.Start(); for (int i = 0; i < Rand.Next(100, 500); i++) { game.ShiftRandom(); } RefreshButtonField(); }
private void GameStart() { game.Start(); for (int i = 0; i < Rand.Next(100, 500); i++) { game.ShiftRandom(); } RefreshButtonField(); count = 0; CountStatus.Text = count.ToString(); timeDate = DateTime.Now; //текущее время timer1.Start(); }