/// <summary> /// Instantiates a new Ayah based in the Surah and Ayah indexes provided /// </summary> /// <param name="surahNumber"> The index of the Surah wich the Ayah belongs to </param> /// <param name="ayahNumber"> The index of the Ayah in the Surah</param> public Ayah(int surahNumber, int ayahNumber) { SurahNumber = surahNumber; AyahNumber = ayahNumber; ayahElement = Quran.GetAyahElement(SurahNumber, AyahNumber); }
//Constructors /// <summary> /// Creates a Surah object by searching the Quran xml document for the "sura" element with the give index /// </summary> /// <param name="surahNumber">the index of the Surah that is being searched for</param> public Surah(int surahNumber) { SurahNumber = surahNumber; _surahElement = Quran.GetSurahElement(SurahNumber); _surahData = Quran.GetSurahDataElement(SurahNumber); }