private void CallChapterEvent(DAL.hadithchapter Chapter) { // Event will be null if there are no subscribers if (ChapterSelectEvent != null) { ChapterSelectEvent(Chapter); } }
void CtlChapter_ChapterSelectEvent(DAL.hadithchapter chap) { CurrentState.ChapterNo = chap.ChapterNo; setExpanderTitle(ExpanderChapter, "ChapterLbl", chap.Title); CurrentState.CtlContent.PopulateContent(CurrentState.HadithId, CurrentState.PageNo, CurrentState.ChapterNo, CurrentState.config.VerseSize, CurrentState.LanguageId); CurrentState.TotalHadith = BLL.HadithData.getTotalHadithInChapter(CurrentState.HadithId, CurrentState.PageNo, CurrentState.ChapterNo); CurrentState.CtlContent.GoToFirstItem(); }