Esempio n. 1
0
        /// <summary>
        ///     Sorts the Record list by the input dates
        /// </summary>
        public void SortInputDates()
        {
            List <ItemRecord> SortedList = new List <ItemRecord>();

            if (InputDateSorOrder == 0)
            {
                SortedList        = RecordList.OrderByDescending(o => o.InputDate).ToList();
                InputDateSorOrder = 1;
            }
            else
            {
                SortedList        = RecordList.OrderBy(o => o.InputDate).ToList();
                InputDateSorOrder = 0;
            }
            this.RecordList = SortedList;
        }
Esempio n. 2
0
        /// <summary>
        ///     Sorts the Record list by the user names
        /// </summary>
        public void SortUserNames()
        {
            List <ItemRecord> SortedList = new List <ItemRecord>();

            if (UserNameSorOrder == 0)
            {
                SortedList       = RecordList.OrderByDescending(o => o.UserName).ToList();
                UserNameSorOrder = 1;
            }
            else
            {
                SortedList       = RecordList.OrderBy(o => o.UserName).ToList();
                UserNameSorOrder = 0;
            }
            this.RecordList = SortedList;
        }
Esempio n. 3
0
        /// <summary>
        ///     Sorts the Record list by the record status
        /// </summary>
        public void SortRecordStatus()
        {
            List <ItemRecord> SortedList = new List <ItemRecord>();

            if (RecordStatusSortOrder == 0)
            {
                SortedList            = RecordList.OrderByDescending(o => o.RecordStatus).ToList();
                RecordStatusSortOrder = 1;
            }
            else
            {
                SortedList            = RecordList.OrderBy(o => o.RecordStatus).ToList();
                RecordStatusSortOrder = 0;
            }
            this.RecordList = SortedList;
        }