private void qv_AyaSoundClick(Aya rAya) { lstPlayList.Clear(); lstPlayList.Add(rAya.ID); lblnowplaying.Tag = rAya.ParentSoura.Name; playStart(); }
private void ShowSoura(string Name) { string aID; Aya rAya; AyaList.Clear(); fItemOver = -1; fItemSelected = -1; XmlNode nodeSoura = fdata.SelectSingleNode("//SOURA[@name='" + Name + "']"); if (nodeSoura == null) { return; } cnSoura.Clear(); cnSoura.Name = Name; cnSoura.AyasCount = nodeSoura.ChildNodes.Count; cnSoura.Number = int.Parse(nodeSoura.Attributes[0].Value); AyaList.Add(new Aya(nodeSoura.Attributes[0].Value, Name)); // soura header has an id of -1 for (int i = 0; i < nodeSoura.ChildNodes.Count; i++) { aID = nodeSoura.ChildNodes[i].Attributes[0].Value; rAya = new Aya(aID, nodeSoura.ChildNodes[i].InnerText); rAya.ParentSoura = cnSoura; cnSoura.Ayas.Add(rAya); AyaList.Add(rAya); } for (int i = 0; i < fQuranParts.Length; i++) { if (fQuranParts[i].Soura <= cnSoura.Number) { fCurrentPart = i; } } //fsbar.Value = 0; UpdateView(); }
private void ShowSoura(string Name) { string aID; Aya rAya; AyaList.Clear(); fItemOver = -1; fItemSelected = -1; XmlNode nodeSoura = fdata.SelectSingleNode("//SOURA[@name='" + Name + "']"); if (nodeSoura == null) return; cnSoura.Clear(); cnSoura.Name = Name; cnSoura.AyasCount = nodeSoura.ChildNodes.Count; cnSoura.Number = int.Parse(nodeSoura.Attributes[0].Value); AyaList.Add(new Aya(nodeSoura.Attributes[0].Value, Name)); // soura header has an id of -1 for (int i = 0; i < nodeSoura.ChildNodes.Count; i++) { aID = nodeSoura.ChildNodes[i].Attributes[0].Value; rAya = new Aya(aID, nodeSoura.ChildNodes[i].InnerText); rAya.ParentSoura = cnSoura; cnSoura.Ayas.Add(rAya); AyaList.Add(rAya); } for (int i = 0; i < fQuranParts.Length; i++) { if (fQuranParts[i].Soura <= cnSoura.Number) fCurrentPart = i; } //fsbar.Value = 0; UpdateView(); }