예제 #1
0
파일: ChapterBase.cs 프로젝트: rmajeed/QP
 public ChapterBase(QuranInfo info, ChapterLite chapter, DatabaseFactory dbFactory)
 {
     this.chapter = chapter;
     this.quranInfo = info;
     this.dbFactory = dbFactory;
     isValid = (chapter != null && chapter.Id > 0 && !string.IsNullOrEmpty(chapter.Name) && chapter.TotalAyahs > 0);
 }
예제 #2
0
파일: ChapterData.cs 프로젝트: rmajeed/QP
 public ChapterData(QuranInfo info, ChapterLite chapter, DatabaseFactory dbFactory)
     : base(info, chapter, dbFactory)
 {
     verses = new List<Verse>();
     rukus = new List<int>();
     sajdas = new List<int>();
 }
예제 #3
0
파일: LSChapterData.cs 프로젝트: rmajeed/QP
 public LSChapterData(QuranInfo info, ChapterLite chapter, DatabaseFactory dbFactory)
     : base(info, chapter, dbFactory)
 {
     verses = new List<LSVerse>();
     lsChapter = new LSChapter();
     lsChapter.Id = chapter.Id;
     lsChapter.TransId = info.Translator;
     LoadDBVerses();
 }
예제 #4
0
파일: QuranData.cs 프로젝트: rmajeed/QP
        private IChapter CreateChapterData(ChapterLite dbChapter)
        {
            IChapter chapterData = null;
            //arabic quran data is being added
            if (quranInfo.Translator == 0 || quranInfo.Language == 1)
            {
                chapterData = new ChapterData(quranInfo, dbChapter, dbFactory);
            }
            else
            {
                chapterData = new LSChapterData(quranInfo, dbChapter, dbFactory);
            }

            return chapterData;
        }