Example #1
0
        public static void FinalizeSession(decimal ID)
        {
            var session = sessions.Where(sess => sess.ID == ID).First();

            sessions.Remove(session);
            players.AsObservableCollection()
            .Where(player => player.SessionID == ID)
            .ForEach(player =>
            {
                player.SessionID = -1;
                player.Bet       = 0;
                player.Hand      = null;
            });
        }