📄 grouptree_comparer.cs
字号:
namespace Imps.Client.Pc.BizControls
{
using Imps.Client.Core;
using System;
using System.Collections.Generic;
public class grouptree_comparer : IComparer<tree_widget.item_type>
{
public int Compare(tree_widget.item_type x, tree_widget.item_type y)
{
if ((x != null) && (y != null))
{
if ((x.context == null) || (y.context == null))
{
return 0;
}
if ((x.context is PersonalGroup) && (y.context is PersonalGroup))
{
return (x.context as PersonalGroup).CompareTo(y.context as PersonalGroup);
}
if ((x.context is PersonalGroupMember) && (y.context is PersonalGroupMember))
{
return (x.context as PersonalGroupMember).CompareTo(y.context as PersonalGroupMember);
}
}
return 0;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -