无法将对象转换为自定义类型 public class Fteventlistlevelcompare : IComparer//实现用接口按照故障层次排序
{
public int Compare(object x, object y)
{
return new CaseInsensitiveComparer().Compare(((TreeNode)x).Level, ((TreeNode)y).Level);
//return new CaseInsensitiveComparer().Compare(((Ftevent)x).ftlevel, ((Ftevent)y).ftlevel);
}
}