Example #1
0
 protected override int SameLevelSortOrder(CustomTreeNode other)
 {
     DiskListSrItem otherItem = other as DiskListSrItem;
     if (otherItem == null) //shouldnt ever happen!!!
         return -1;
     int rank = this.SrRank() - otherItem.SrRank();
     if (rank == 0)
         return base.SameLevelSortOrder(other);
     else
         return rank;
 }
Example #2
0
        protected override int SameLevelSortOrder(CustomTreeNode other)
        {
            DiskListSrItem otherItem = other as DiskListSrItem;

            if (otherItem == null) //shouldnt ever happen!!!
            {
                return(-1);
            }
            int rank = this.SrRank() - otherItem.SrRank();

            if (rank == 0)
            {
                return(base.SameLevelSortOrder(other));
            }
            else
            {
                return(rank);
            }
        }