private void CallContentEvent(BLL.HadithContentExt Content, int Index) { // Event will be null if there are no subscribers if (ContentSelectEvent != null) { ContentSelectEvent(Content, Index); } }
/* * void LoadChapterByIndex(int NoSurah, int NoAyah = 1) * { * var item = BLL.HadithData.getChapter(NoSurah); * CurrentState.ChapterNo = NoSurah; * CurrentState.TotalAyah = item.totalayah; * CurrentState.HadithNo = NoAyah; * CurrentState.CtlContent.LoadAyah(NoSurah, CurrentState.LanguageId, CurrentState.CtlSetting.VerseSize); * SurahLbl.Content = BLL.HadithData.AyahInArabic[item.idx] + ". " + item.name + " - " + item.latin; * setExpanderTitle(ExpanderChapter, "Surahlbl", "Now Reciting: " + item.latin); * }*/ void CtlContent_ContentSelectEvent(BLL.HadithContentExt content, int Index) { CurrentState.HadithNo = Index; if (CurrentState.config.isAutoSpeech) { Recite(); } }