Example #1
0
 public GameRestoreAnimator(DTO_RESTORED_GAME restoredGame)
 {
     this.restoredGame       = restoredGame;
     animationTimer          = new Timer();
     animationTimer.Interval = Constants.restoreAnimationSpeed;
     animationTimer.Tick    += new EventHandler(Animation);
 }
Example #2
0
        public static void OnRestoreGame(int gameID)
        {
            GameForm GameFormReference = (GameForm)Application.OpenForms["GameForm"];

            Thread thread = new Thread(delegate()
            {
                DTO_RESTORED_GAME restoredGame = duplexServiceClient.GetRestoredGame(gameID);
                GameController.gameType        = Constants.GAME_TYPE_GAME_RESTORE;
                GameFormReference.ShowRestoredGame(restoredGame);
            });

            thread.Start();
        }