//get list of Aya public List<AuthorClass> GuranAya(String ReciteName) { List<AuthorClass> ListAya = new List<AuthorClass>(); if (LanguageSelect == 1) { ListAya.Add(new AuthorClass("001", " الفاتحة")); ListAya.Add(new AuthorClass("002", "البقرة")); ListAya.Add(new AuthorClass("003", "ال عمران ")); ListAya.Add(new AuthorClass("004", "النساء")); ListAya.Add(new AuthorClass("005", " المائدة")); ListAya.Add(new AuthorClass("006", " الانعام")); ListAya.Add(new AuthorClass("007", " الأعراف")); ListAya.Add(new AuthorClass("008", " الأنفال")); ListAya.Add(new AuthorClass("009", " التوبة ")); ListAya.Add(new AuthorClass("010", " يونس")); ListAya.Add(new AuthorClass("011", " هود")); ListAya.Add(new AuthorClass("012", " يوسف")); ListAya.Add(new AuthorClass("013", " الرعد")); ListAya.Add(new AuthorClass("014", " إبراهيم")); ListAya.Add(new AuthorClass("015", " الحجر")); ListAya.Add(new AuthorClass("016", " النحل")); ListAya.Add(new AuthorClass("017", " الإسراء")); ListAya.Add(new AuthorClass("018", " الكهف")); ListAya.Add(new AuthorClass("019", " مريم")); ListAya.Add(new AuthorClass("020", " طه")); ListAya.Add(new AuthorClass("021", " الأنبياء")); ListAya.Add(new AuthorClass("022", " الحج")); ListAya.Add(new AuthorClass("023", " المؤمنون")); ListAya.Add(new AuthorClass("024", " النّور")); ListAya.Add(new AuthorClass("025", " الفرقان ")); ListAya.Add(new AuthorClass("026", " الشعراء ")); ListAya.Add(new AuthorClass("027", " النّمل")); ListAya.Add(new AuthorClass("028", " القصص")); ListAya.Add(new AuthorClass("029", " العنكبوت")); ListAya.Add(new AuthorClass("030", " الرّوم")); ListAya.Add(new AuthorClass("031", " لقمان")); ListAya.Add(new AuthorClass("032", " السجدة")); ListAya.Add(new AuthorClass("033", " الأحزاب")); ListAya.Add(new AuthorClass("034", " سبأ")); ListAya.Add(new AuthorClass("035", " فاطر")); ListAya.Add(new AuthorClass("036", " يس")); ListAya.Add(new AuthorClass("037", " الصافات")); ListAya.Add(new AuthorClass("038", " ص")); ListAya.Add(new AuthorClass("039", " الزمر")); ListAya.Add(new AuthorClass("040", " غافر")); ListAya.Add(new AuthorClass("041", " فصّلت")); ListAya.Add(new AuthorClass("042", " الشورى")); ListAya.Add(new AuthorClass("043", " الزخرف")); ListAya.Add(new AuthorClass("044", " الدّخان")); ListAya.Add(new AuthorClass("045", " الجاثية")); ListAya.Add(new AuthorClass("046", " الأحقاف")); ListAya.Add(new AuthorClass("047", " محمد")); ListAya.Add(new AuthorClass("048", " الفتح")); ListAya.Add(new AuthorClass("049", " الحجرات")); ListAya.Add(new AuthorClass("050", " ق")); ListAya.Add(new AuthorClass("051", " الذاريات")); ListAya.Add(new AuthorClass("052", " الطور")); ListAya.Add(new AuthorClass("053", " النجم")); ListAya.Add(new AuthorClass("054", " القمر")); ListAya.Add(new AuthorClass("055", " الرحمن")); ListAya.Add(new AuthorClass("056", " الواقعة")); ListAya.Add(new AuthorClass("057", " الحديد")); ListAya.Add(new AuthorClass("058", " المجادلة")); ListAya.Add(new AuthorClass("059", " الحشر")); ListAya.Add(new AuthorClass("060", " الممتحنة")); ListAya.Add(new AuthorClass("061", " الصف")); ListAya.Add(new AuthorClass("062", " الجمعة")); ListAya.Add(new AuthorClass("063", " المنافقون")); ListAya.Add(new AuthorClass("064", " التغابن")); ListAya.Add(new AuthorClass("065", " الطلاق")); ListAya.Add(new AuthorClass("066", " التحريم")); ListAya.Add(new AuthorClass("067", " الملك")); ListAya.Add(new AuthorClass("068", " القلم")); ListAya.Add(new AuthorClass("069", " الحاقة")); ListAya.Add(new AuthorClass("070", " المعارج")); ListAya.Add(new AuthorClass("071", " نوح")); ListAya.Add(new AuthorClass("072", " الجن")); ListAya.Add(new AuthorClass("073", " المزّمّل")); ListAya.Add(new AuthorClass("074", " المدّثر")); ListAya.Add(new AuthorClass("075", " القيامة")); ListAya.Add(new AuthorClass("076", " الإنسان")); ListAya.Add(new AuthorClass("077", " المرسلات")); ListAya.Add(new AuthorClass("078", " النبأ")); ListAya.Add(new AuthorClass("079", " النازعات")); ListAya.Add(new AuthorClass("080", " عبس")); ListAya.Add(new AuthorClass("081", " التكوير")); ListAya.Add(new AuthorClass("082", " الإنفطار")); ListAya.Add(new AuthorClass("083", " المطفّفين")); ListAya.Add(new AuthorClass("084", " الإنشقاق")); ListAya.Add(new AuthorClass("085", " البروج")); ListAya.Add(new AuthorClass("086", " الطارق")); ListAya.Add(new AuthorClass("087", " الأعلى")); ListAya.Add(new AuthorClass("088", " الغاشية")); ListAya.Add(new AuthorClass("089", " الفجر")); ListAya.Add(new AuthorClass("090", " البلد")); ListAya.Add(new AuthorClass("091", " الشمس")); ListAya.Add(new AuthorClass("092", " الليل")); ListAya.Add(new AuthorClass("093", " الضحى")); ListAya.Add(new AuthorClass("094", " الشرح")); ListAya.Add(new AuthorClass("095", " التين")); ListAya.Add(new AuthorClass("096", " العلق")); ListAya.Add(new AuthorClass("097", " القدر")); ListAya.Add(new AuthorClass("098", " البينة")); ListAya.Add(new AuthorClass("099", " الزلزلة")); ListAya.Add(new AuthorClass("100", " العاديات")); ListAya.Add(new AuthorClass("101", " القارعة")); ListAya.Add(new AuthorClass("102", " التكاثر")); ListAya.Add(new AuthorClass("103", " العصر")); ListAya.Add(new AuthorClass("104", " الهمزة")); ListAya.Add(new AuthorClass("105", " الفيل")); ListAya.Add(new AuthorClass("106", " قريش")); ListAya.Add(new AuthorClass("107", " الماعون")); ListAya.Add(new AuthorClass("108", " الكوثر")); ListAya.Add(new AuthorClass("109", " الكافرون")); ListAya.Add(new AuthorClass("110", " النصر")); ListAya.Add(new AuthorClass("111", " المسد")); ListAya.Add(new AuthorClass("112", " الإخلاص")); ListAya.Add(new AuthorClass("113", " الفلق")); ListAya.Add(new AuthorClass("114", " النّاس")); } else { //english aya ListAya.Add(new AuthorClass("001", "Al-Fatihah ")); ListAya.Add(new AuthorClass("002", "Al-Baqarah ")); ListAya.Add(new AuthorClass("003", "Al-'Imran ")); ListAya.Add(new AuthorClass("004", "An-Nisa' ")); ListAya.Add(new AuthorClass("005", "Al-Ma'idah ")); ListAya.Add(new AuthorClass("006", "Al-An'am ")); ListAya.Add(new AuthorClass("007", "Al-A'raf ")); ListAya.Add(new AuthorClass("008", "Al-Anfal ")); ListAya.Add(new AuthorClass("009", "Al-Bara'at ")); ListAya.Add(new AuthorClass("010", "Yunus ")); ListAya.Add(new AuthorClass("011", " Hud(Hud)")); ListAya.Add(new AuthorClass("012", " Yusuf ")); ListAya.Add(new AuthorClass("013", "Ar - Ra'd ")); ListAya.Add(new AuthorClass("014", "Ibrahim ")); ListAya.Add(new AuthorClass("015", " Al - Hijr ")); ListAya.Add(new AuthorClass("016", " An - Nahl ")); ListAya.Add(new AuthorClass("017", " Bani Isra'il ")); ListAya.Add(new AuthorClass("018", " Al-Kahf ")); ListAya.Add(new AuthorClass("019", "Maryam ")); ListAya.Add(new AuthorClass("020", "Ta Ha ")); ListAya.Add(new AuthorClass("021", "Al-Anbiya' ")); ListAya.Add(new AuthorClass("022", "Al-Hajj ")); ListAya.Add(new AuthorClass("023", "Al-Mu'minun ")); ListAya.Add(new AuthorClass("024", "An-Nur ")); ListAya.Add(new AuthorClass("025", "Al-Furqan ")); ListAya.Add(new AuthorClass("026", "Ash-Shu'ara' ")); ListAya.Add(new AuthorClass("027", "An-Naml ")); ListAya.Add(new AuthorClass("028", "Al-Qasas ")); ListAya.Add(new AuthorClass("029", "Al-'Ankabut ")); ListAya.Add(new AuthorClass("030", "Ar-Rum ")); ListAya.Add(new AuthorClass("031", "Luqman ")); ListAya.Add(new AuthorClass("032", "As-Sajdah ")); ListAya.Add(new AuthorClass("033", "Al-Ahzab ")); ListAya.Add(new AuthorClass("034", "Al-Saba' ")); ListAya.Add(new AuthorClass("035", "Al-Fatir ")); ListAya.Add(new AuthorClass("036", "Ya Sin ")); ListAya.Add(new AuthorClass("037", "As-Saffat")); ListAya.Add(new AuthorClass("038", "Sad ")); ListAya.Add(new AuthorClass("039", "Az-Zumar ")); ListAya.Add(new AuthorClass("040", "Al-Mu'min ")); ListAya.Add(new AuthorClass("041", "Ha Mim ")); ListAya.Add(new AuthorClass("042", "Ash-Shura ")); ListAya.Add(new AuthorClass("043", "Az-Zukhruf ")); ListAya.Add(new AuthorClass("044", "Ad-Dukhan ")); ListAya.Add(new AuthorClass("045", "Al-Jathiyah ")); ListAya.Add(new AuthorClass("046", "Al-Ahqaf ")); ListAya.Add(new AuthorClass("047", "Muhammad ")); ListAya.Add(new AuthorClass("048", "Al-Fath ")); ListAya.Add(new AuthorClass("049", "Al-Hujurat ")); ListAya.Add(new AuthorClass("050", "Qaf ")); ListAya.Add(new AuthorClass("051", "Ad-Dhariyat ")); ListAya.Add(new AuthorClass("052", "At-Tur ")); ListAya.Add(new AuthorClass("053", "An-Najm ")); ListAya.Add(new AuthorClass("054", "Al-Qamar ")); ListAya.Add(new AuthorClass("055", "Ar-Rahman ")); ListAya.Add(new AuthorClass("056", "Al-Waqi'ah ")); ListAya.Add(new AuthorClass("057", "Al-Hadid ")); ListAya.Add(new AuthorClass("058", "Al-Mujadilah ")); ListAya.Add(new AuthorClass("059", "Al-Hashr ")); ListAya.Add(new AuthorClass("060", "Al-Mumtahanah ")); ListAya.Add(new AuthorClass("061", "As-Saff ")); ListAya.Add(new AuthorClass("062", "Al-Jumu'ah ")); ListAya.Add(new AuthorClass("063", "Al-Munafiqun ")); ListAya.Add(new AuthorClass("064", "At-Taghabun ")); ListAya.Add(new AuthorClass("065", "At-Talaq ")); ListAya.Add(new AuthorClass("066", "At-Tahrim ")); ListAya.Add(new AuthorClass("067", "Al-Mulk ")); ListAya.Add(new AuthorClass("068", "Al-Qalam ")); ListAya.Add(new AuthorClass("069", "Al-Haqqah ")); ListAya.Add(new AuthorClass("070", "Al-Ma'arij ")); ListAya.Add(new AuthorClass("071", "Nuh ")); ListAya.Add(new AuthorClass("072", "Al-Jinn ")); ListAya.Add(new AuthorClass("073", "Al-Muzzammil ")); ListAya.Add(new AuthorClass("074", "Al-Muddaththir ")); ListAya.Add(new AuthorClass("075", "Al-Qiyamah ")); ListAya.Add(new AuthorClass("076", "Al-Insan ")); ListAya.Add(new AuthorClass("077", "Al-Mursalat ")); ListAya.Add(new AuthorClass("078", "An-Naba' ")); ListAya.Add(new AuthorClass("079", "An-Nazi'at ")); ListAya.Add(new AuthorClass("080", "'Abasa ")); ListAya.Add(new AuthorClass("081", "At-Takwir ")); ListAya.Add(new AuthorClass("082", "Al-Infitar ")); ListAya.Add(new AuthorClass("083", "At-Tatfif ")); ListAya.Add(new AuthorClass("084", "Al-Inshiqaq ")); ListAya.Add(new AuthorClass("085", "Al-Buruj ")); ListAya.Add(new AuthorClass("086", "At-Tariq ")); ListAya.Add(new AuthorClass("087", "Al-A'la ")); ListAya.Add(new AuthorClass("088", "Al-Ghashiyah ")); ListAya.Add(new AuthorClass("089", "Al-Fajr ")); ListAya.Add(new AuthorClass("090", "Al-Balad ")); ListAya.Add(new AuthorClass("091", "Ash-Shams ")); ListAya.Add(new AuthorClass("092", "Al-Lail ")); ListAya.Add(new AuthorClass("093", "Ad-Duha ")); ListAya.Add(new AuthorClass("094", "Al-Inshirah ")); ListAya.Add(new AuthorClass("095", "At-Tin ")); ListAya.Add(new AuthorClass("096", "Al-'Alaq ")); ListAya.Add(new AuthorClass("097", " Al-Qadr ")); ListAya.Add(new AuthorClass("098", " Al-Bayyinah ")); ListAya.Add(new AuthorClass("099", " Al-Zilzal ")); ListAya.Add(new AuthorClass("100", " Al-'Adiyat ")); ListAya.Add(new AuthorClass("101", " Al-Qari'ah ")); ListAya.Add(new AuthorClass("102", "At-Takathur ")); ListAya.Add(new AuthorClass("103", "Al-'Asr ")); ListAya.Add(new AuthorClass("104", "Al-Humazah ")); ListAya.Add(new AuthorClass("105", "Al-Fil ")); ListAya.Add(new AuthorClass("106", "Al-Quraish ")); ListAya.Add(new AuthorClass("107", "Al-Ma'un ")); ListAya.Add(new AuthorClass("108", "Al-Kauthar ")); ListAya.Add(new AuthorClass("109", "Al-Kafirun ")); ListAya.Add(new AuthorClass("110", "An-Nasr ")); ListAya.Add(new AuthorClass("111", " Al-Lahab ")); ListAya.Add(new AuthorClass("112", " Al-Ikhlas ")); ListAya.Add(new AuthorClass("113", "Al-Falaq ")); ListAya.Add(new AuthorClass("114", " An-Nas ")); } ListBeginEndAya ListRange = new ListBeginEndAya(); ListRange = autherRanageDetermine(ReciteName); List<AuthorClass> ListAyaRanage = new List<AuthorClass>(); //IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication(); String AYAPAth; for (int i = ListRange.beginR; i < ListRange.endread; i++) { try { AuthorClass ac = new AuthorClass(); ac = ListAya[i]; AYAPAth = "http://server" + serverNumber(ReciteName) + ".mp3quran.net/" + ReciteName + "/" + ac.ServerName + ".mp3"; ListAyaRanage.Add(new AuthorClass(ac.ServerName, ac.RealName, " ", AYAPAth)); } catch (Exception ex) { } } return (ListAyaRanage); }
int LanguageSelect = 1; // lanuage selected 1-arabic 2- english #endregion Fields #region Methods public static ListBeginEndAya autherRanageDetermine(String EnglishName) { ListBeginEndAya authLengther = new ListBeginEndAya(); authLengther.beginR = 0; authLengther.endread = 114; if (EnglishName.Length == 0) { authLengther.beginR = 0; authLengther.endread = 114; } else if (EnglishName.Contains("saud")) { authLengther.beginR = 84; authLengther.endread = 114; } else if (EnglishName.Contains("akil")) { authLengther.beginR = 49; authLengther.endread = 56; } else if (EnglishName.Contains("IbrahemSadan")) { authLengther.beginR = 0; authLengther.endread = 20; } else if (EnglishName.Contains("jbreen")) { authLengther.beginR = 18; authLengther.endread = 114; } else if (EnglishName.Contains("jormy")) { authLengther.beginR = 39; authLengther.endread = 41; } else if (EnglishName.Contains("3siri")) { authLengther.beginR = 0; authLengther.endread = 75; } else if (EnglishName.Contains("zamri")) { authLengther.beginR = 2; authLengther.endread = 76; } else if (EnglishName.Contains("3zazi")) { authLengther.beginR = 57; authLengther.endread = 114; } else if (EnglishName.Contains("hamza")) { authLengther.beginR = 1; authLengther.endread = 114; } else if (EnglishName.Contains("sami_dosr")) { authLengther.beginR = 28; authLengther.endread = 114; } else if (EnglishName.Contains("brmi")) { authLengther.beginR = 48; authLengther.endread = 114; } else if (EnglishName.Contains("abo_hashim")) { authLengther.beginR = 49; authLengther.endread = 58; } else if (EnglishName.Contains("lafi")) { authLengther.beginR = 29; authLengther.endread = 114; } else if (EnglishName.Contains("zaml")) { authLengther.beginR = 12; authLengther.endread = 114; } else if (EnglishName.Contains("shaibat")) { authLengther.beginR = 77; authLengther.endread = 114; } else if (EnglishName.Contains("braak")) { authLengther.beginR = 49; authLengther.endread = 114; } else if (EnglishName.Contains("maher_m")) { authLengther.beginR = 77; authLengther.endread = 114; } return authLengther; }