private void CallHadithEvent(DAL.hadith Hadith) { // Event will be null if there are no subscribers if (HadithSelectEvent != null) { HadithSelectEvent(Hadith); } }
void CtlHadith_HadithSelectEvent(DAL.hadith item) { //hadith click CurrentState.HadithId = item.HadithID; setExpanderTitle(ExpanderHadith, "HadithLbl", item.Title); CurrentState.CtlPage.PopulatePages(CurrentState.HadithId); CurrentState.CtlPage.GoToFirstItem(); //LoadChapterByIndex(CurrentState.CtlChapter.MinChapter, CurrentState.CtlChapter.MinAyah); //CurrentState.CtlContent.SetItemHadith(CurrentState.HadithNo - 1, Brushes.Orange, true, false); }