Esempio n. 1
0
        /// <summary>
        /// Reset all tracking variables.
        /// </summary>
        public void Reset()
        {
            VotesWithSupporters.Clear();
            VoterMessageId.Clear();
            RankedVotesWithSupporters.Clear();
            RankedVoterMessageId.Clear();
            PlanNames.Clear();

            ReferenceVoters.Clear();
            ReferenceVoterPosts.Clear();
            ReferencePlanNames.Clear();
            ReferencePlans.Clear();

            FutureReferences.Clear();

            UndoBuffer.Clear();

            OrderedTaskList.Clear();

            cleanVoteLookup.Clear();
            cleanedKeys.Clear();

            if (VotesWithSupporters.Comparer != Agnostic.StringComparer)
            {
                VotesWithSupporters = new Dictionary <string, HashSet <string> >(Agnostic.StringComparer);
            }
            if (RankedVotesWithSupporters.Comparer != Agnostic.StringComparer)
            {
                RankedVotesWithSupporters = new Dictionary <string, HashSet <string> >(Agnostic.StringComparer);
            }

            OnPropertyChanged("VoteCounter");
            OnPropertyChanged("Tasks");
        }
Esempio n. 2
0
        /// <summary>
        /// Reset all tracking variables.
        /// </summary>
        public void Reset()
        {
            VoteStorage.Clear();
            ReferenceOrigins.Clear();
            ReferencePlans.Clear();
            FutureReferences.Clear();
            UndoBuffer.Clear();

            VoteDefinedTasks.Clear();
            OrderedVoteTaskList.Clear();
            TaskList.Clear();

            OnPropertyChanged("VoteCounter");
            OnPropertyChanged("Tasks");
        }