示例#1
0
        public static bool TryGetStartOfDocumentSlice(int documentSliceIndex, out DocumentSlice documentSlice)
        {
            if (DocumentList[documentSliceIndex].BookNumber != null)
            {
                documentSlice = DocumentList[documentSliceIndex];
                return(true);
            }

            documentSlice = null;
            return(false);
        }
示例#2
0
        public static int GetStartIndex(DocumentSlice documentSlice)
        {
            var index = DocumentList.IndexOf(documentSlice);

            return(GetStartIndex(index));
        }