예제 #1
0
 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();
 }
예제 #2
0
파일: Fifteen.cs 프로젝트: bl1n41k/lab4
 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();
 }