private void TopBar2_clicked()
 {
     if (_sortMode != ESortMode.BundleName)
     {
         _sortMode       = ESortMode.BundleName;
         _descendingSort = false;
         RefreshView();
     }
     else
     {
         _descendingSort = !_descendingSort;
         RefreshView();
     }
 }
 private void TopBar1_clicked()
 {
     if (_sortMode != ESortMode.AssetPath)
     {
         _sortMode       = ESortMode.AssetPath;
         _descendingSort = false;
         RefreshView();
     }
     else
     {
         _descendingSort = !_descendingSort;
         RefreshView();
     }
 }
Example #3
0
 /// <summary>
 /// 设置结果的排序方式
 /// </summary>
 /// <param name="eSortType">排序方式</param>
 public static void CF_SetSort(ESortMode eSortType)
 {
     try
     {
         if (CP_Platform == EPlatform.X86)
         {
             ModEverything32.Everything_SetSort((uint)eSortType);
         }
         else
         {
             ModEverything64.Everything_SetSort((uint)eSortType);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public SortModeItem(ESortMode sortMode)
 {
     SortMode = sortMode;
 }