public GameRestoreAnimator(DTO_RESTORED_GAME restoredGame) { this.restoredGame = restoredGame; animationTimer = new Timer(); animationTimer.Interval = Constants.restoreAnimationSpeed; animationTimer.Tick += new EventHandler(Animation); }
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(); }