Beispiel #1
0
 private void CallSurahEvent(DAL.surah Surah)
 {
     // Event will be null if there are no subscribers
     if (SurahSelectEvent != null)
     {
         SurahSelectEvent(Surah);
     }
 }
Beispiel #2
0
        public void test2()
        {
            List <DAL.surah> surahlist = new List <DAL.surah>();
            string           Con       = ConfigurationManager.ConnectionStrings["quran_context"].ConnectionString;

            QFE.BLL.quran_data.Conn = Con;
            System.Data.DataTable dt = QFE.WPF.Tools.CSVReader.OpenCSV(@"C:\sampah\surah.csv");
            foreach (System.Data.DataRow dr in dt.Rows)
            {
                DAL.surah item = new DAL.surah();
                item.idx       = Convert.ToInt32(dr["No"]);
                item.totalayah = Convert.ToInt32(dr["ayah"]);
                item.latin     = dr["surah"].ToString();
                item.place     = dr["place"].ToString();
                surahlist.Add(item);
            }
            BLL.quran_data.UpdateSurah(surahlist);
        }
Beispiel #3
0
 void CtlSurah_SurahSelectEvent(DAL.surah menu)
 {
     LoadSpecificSurah(menu.idx);
 }