public string GetThisPage(PSVReaderUI.StreamPageLabel sampleLabel)
        {
            int index = 0;
            int lenth = 0;
            PrepareOnePage(sampleLabel, true, curIndex, out index, out lenth);

            sampleLabel.ContentIndex = index;
            sampleLabel.ContentLenth = lenth;

            return str.Substring(index, lenth);
        }
Exemple #2
0
        public static void UpdateStory(PSVReaderUI.StoryNameList list)
        {
            List<string> names = FileManage.GetAllStoryName();

            list.ClearBook();
            foreach (string na in names)
            {
                List<string> chapterName = FileManage.GetStory(na);

                list.AddBook(na, chapterName);
            }
        }
        public string GetPrevPage(PSVReaderUI.StreamPageLabel sampleLabel)
        {
            if (false == HasPrev())
                return null;

            int index = 0;
            int lenth = 0;
            PrepareOnePage(sampleLabel, false, curIndex, out index, out lenth);

            sampleLabel.ContentIndex = index;
            sampleLabel.ContentLenth = lenth;

            return str.Substring(index, lenth);
        }