Esempio n. 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);
        }
Esempio n. 2
0
        public static int GetStartIndex(DocumentSlice documentSlice)
        {
            var index = DocumentList.IndexOf(documentSlice);

            return(GetStartIndex(index));
        }