コード例 #1
0
        private void ReSortCurrentCards(bool isReverse)
        {
            var temp = new List <CardInformation>(Cards);

            sign = isReverse ? -1 : 1;
            temp.Sort(CurrentSortMethod);
            PopulateCards(temp);
            NextCards.Sort(CurrentSortMethod);
            PreviousCards.Sort(CurrentSortMethod);
        }
コード例 #2
0
        public void SortWithAnswer(bool isReverse)
        {
            viewColumn = SearchSortColumn.Answer;
            var temp = new List <CardInformation>(Cards);

            sign = isReverse ? -1 : 1;
            temp.Sort(CompareAnswer);
            PopulateCards(temp);
            NextCards.Sort(CompareAnswer);
            PreviousCards.Sort(CompareAnswer);
        }