private void CallPagesEvent(DAL.hadithindex Pages) { // Event will be null if there are no subscribers if (PagesSelectEvent != null) { PagesSelectEvent(Pages); } }
void CtlPage_PagesSelectEvent(DAL.hadithindex page) { //page click CurrentState.PageNo = page.No; var selHadith = BLL.HadithData.getHadith(CurrentState.HadithId); NowLatinLbl.Text = selHadith.Title.Trim() + " - " + page.Name.Trim(); NowArabicLbl.Text = page.ArabicName.Trim(); setExpanderTitle(ExpanderPage, "PageLbl", page.Name); CurrentState.CtlChapter.PopulateChapter(CurrentState.HadithId, CurrentState.PageNo); CurrentState.CtlChapter.GoToFirstItem(); }