示例#1
0
        private void UpdateThumbnailListViewSortOrder(ImageRakerThumnbnailListViewItemComparer.SortOrder order, bool update)
        {
            if (update)
            {
                comparer.SetSortOrder(order);
                thumbnailListView.Sort();

                string sortOrder = comparer.GetSortOrder().ToString();
                Config.Instance.SetConfig("SortOrder", sortOrder);
            }
        }
示例#2
0
        private void SortThumbnailListView(ImageRakerThumnbnailListViewItemComparer.CompareMethod method, bool update)
        {
            if (update)
            {
                comparer.SetCompareMethod(method);
                thumbnailListView.Sort();

                string compareMethod = comparer.GetCompareMethod().ToString();
                Config.Instance.SetConfig("CompareMethod", compareMethod);
            }
        }