Ejemplo n.º 1
0
        public int CompareTo(object obj)
        {
            CellsBlock block = obj as CellsBlock;

            if (block == null)
            {
                return(-1);
            }
            if (Length == block.Length)
            {
                if (IsOpened)
                {
                    return(-1);
                }
            }
            return(Length - block.Length);
        }
Ejemplo n.º 2
0
 public CellsBlock(CellsBlock origin)
 {
     Length        = origin.Length;
     StartPosition = origin.StartPosition;
     IsOpened      = origin.IsOpened;
 }