Exemple #1
0
        void OnCollectionCleared(Collection collection, string user)
        {
            Dispatcher.BeginInvoke((Action)(() => {
                if (collection.Name != selectedcollection)
                {
                    return;
                }

                items.RemoveWhere(i => i.User == user);
            }));
        }
Exemple #2
0
        void OnItemUnblocked(Collection collection, BlockedCollectionItem item)
        {
            Dispatcher.BeginInvoke((Action)(() => {
                if (item.Collection != selectedcollection)
                {
                    return;
                }

                blockeditems.RemoveWhere(i => i.Item == item.Item);
            }));
        }
Exemple #3
0
        void OnOptionRemoved(PollOption option)
        {
            Dispatcher.BeginInvoke((Action)(() => {
                if (option.Poll != selectedpoll)
                {
                    return;
                }

                options.RemoveWhere(i => i.Key == option.Key);
            }));
        }
Exemple #4
0
        void OnVoteRemoved(PollVote vote)
        {
            Dispatcher.BeginInvoke((Action)(() => {
                if (vote.Poll != selectedpoll)
                {
                    return;
                }

                votes.RemoveWhere(i => i.User == vote.User && i.Vote == vote.Vote);
            }));
        }
Exemple #5
0
 void OnCollectionRemoved(Collection collection)
 {
     Dispatcher.BeginInvoke((Action)(() => {
         collections.RemoveWhere(c => c.Name == collection.Name);
     }));
 }
 /// <summary>
 /// removes a game from the list
 /// </summary>
 /// <param name="game">game to be removed</param>
 public void RemoveGame(string game)
 {
     lock (gameslock) {
         games.RemoveWhere(g => g.Name == game);
     }
 }
Exemple #7
0
 void OnPollRemoved(Poll poll)
 {
     Dispatcher.BeginInvoke((Action)(() => {
         polls.RemoveWhere(c => c.Name == poll.Name);
     }));
 }