Esempio n. 1
0
        void SortEntries(TableEntryComparer comparer)
        {
            string selHash = SelectedIndex >= 0 ? usedEntries[SelectedIndex].Hash : "";

            Array.Sort(usedEntries, 0, Count, comparer);
            Array.Sort(entries, 0, entries.Length, comparer);
            lastIndex = -10;

            comparer.Invert = !comparer.Invert;
            SetSelected(selHash);
            NeedRedraw();
        }
        void SortEntries( TableEntryComparer comparer, bool noRedraw )
        {
            string selHash = SelectedIndex >= 0 ? usedEntries[SelectedIndex].Hash : "";
            Array.Sort( usedEntries, 0, Count, comparer );
            Array.Sort( entries, 0, entries.Length, comparer );
            lastIndex = -10;
            if( noRedraw ) return;

            comparer.Invert = !comparer.Invert;
            SetSelected( selHash );
            NeedRedraw();
        }
 void SortEntries( TableEntryComparer comparer )
 {
     Array.Sort( usedEntries, 0, Count, comparer );
     Array.Sort( entries, 0, entries.Length, comparer );
     comparer.Invert = !comparer.Invert;
     NeedRedraw();
 }