Exemple #1
0
        void DepthSort()
        {
            var st = new SortTool <BaseUnit>();

            foreach (var ub in _unitList)
            {
                st.AddItem((int)(ub.SortValue * 100), ub);
            }
            var sortList = st.Sort(true);

            for (int i = 0; i < sortList.Length; i++)
            {
                sortList[i].SetSortValue(i);
            }
        }
Exemple #2
0
 private void SortTags()
 {
     SortTool.SortList(Tags, TagSortProperty);
 }
Exemple #3
0
 private void SortSources()
 {
     SortTool.SortList(Sources, SourceSortProperty);
 }
Exemple #4
0
 private void SortDishes()
 {
     SortTool.SortList(Dishes, DishSortProperty);
 }
Exemple #5
0
 public void SetTagSortProperty(string path)
 {
     SortTool.SetSortProperty(TagSortProperty, path, SortTags);
 }
Exemple #6
0
 public void SetSourceSortProperty(string path)
 {
     SortTool.SetSortProperty(SourceSortProperty, path, SortSources);
 }
Exemple #7
0
 public void SetDishSortProperty(string path)
 {
     SortTool.SetSortProperty(DishSortProperty, path, SortDishes);
 }