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

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

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

                options.RemoveWhere(i => i.Key == option.Key);
            }));
        }
示例#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);
            }));
        }
示例#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);
     }
 }
示例#7
0
 void OnPollRemoved(Poll poll)
 {
     Dispatcher.BeginInvoke((Action)(() => {
         polls.RemoveWhere(c => c.Name == poll.Name);
     }));
 }