示例#1
0
 private static int CompareDepth(IDepthSortable d1, IDepthSortable d2)
 {
     if (d1.Depth > d2.Depth)
     {
         return(1);
     }
     if (d1.Depth < d2.Depth)
     {
         return(-1);
     }
     return(0);
 }
示例#2
0
 public void UnRegister(IDepthSortable depthSortable)
 {
     _depthSortables.Remove(depthSortable);
 }
示例#3
0
 public void Register(IDepthSortable depthSortable)
 {
     _depthSortables.Add(depthSortable);
 }