grouptree_comparer.cs
来自「破解的飞信源代码」· CS 代码 · 共 31 行
CS
31 行
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 + =
减小字号Ctrl + -
显示快捷键?