first commit

This commit is contained in:
lq
2026-09-07 08:07:08 +08:00
commit e703fb2752
2488 changed files with 2784663 additions and 0 deletions
@@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JinYuan.ControlLib.UCHelper
{
//
// 摘要:
// 属性排序 序号比较器
public class PropertyOrderPair : IComparable
{
private float order;
private string categoryName;
//
// 摘要:
// 类别名称
public string CategoryName => categoryName;
//
// 参数:
// categoryName:
// 类别名称
//
// order:
// 序号
public PropertyOrderPair(string categoryName, float order)
{
this.order = order;
this.categoryName = categoryName;
}
public int CompareTo(object obj)
{
PropertyOrderPair propertyOrderPair = (PropertyOrderPair)obj;
if (propertyOrderPair.order == order)
{
return string.Compare(categoryName, propertyOrderPair.categoryName);
}
if (propertyOrderPair.order > order)
{
return -1;
}
return 1;
}
}
}