Exemple #1
0
        /// <summary>
        /// Used to stop the old card game, and start the new one.
        /// </summary>
        /// <param name="game"></param>
        public void StartNewCardGame(ICardGame game)
        {
            try
            {
                if (VariableStorage.IsCardGameAlreadyGoing)
                {
                    this.Current.Stop();
                }

                VariableStorage.IsCardGameAlreadyGoing = true;

                this.Current = game;
                game.New();
            }
            catch (Exception TheException)
            {
                ErrorReporter.Report(TheException);
            }
        }