private void _ShowVideo(string sPath) { txPrevCnt.Text = m_iIndex.ToString(); txNextCnt.Text = Math.Max(0, ((m_aVideos.Count - 1) - m_iIndex)).ToString(); string strDet = (m_iIndex + 1).ToString() + " / " + m_aVideos.Count.ToString() + "\r\n"; string strFn = sPath; int iPos = sPath.LastIndexOf('\\'); if (iPos >= 0) { strFn = sPath.Substring(iPos + 1); } strDet += "\r\n" + strFn; string strFldr = "\\"; if (iPos >= 0) { strFldr = sPath.Substring(0, iPos + 1); } strDet += "\r\n" + "\r\n" + strFldr; m_sVidInf = strDet; txImgDetails.Text = strDet; long lFs = 0; try { if (RscStore.IsIsoStorePath(sPath)) { RscStore store = new RscStore(); System.IO.Stream stream = store.GetReaderStream(sPath, false); lFs = stream.Length; vidFull.SetSource(stream); stream.Close(); } else { RscStore store = new RscStore(); lFs = store.GetFileLength(sPath); vidFull.Source = new Uri("file:///" + sPath, UriKind.Absolute); } } catch (Exception e) { strDet += "\r\n" + "\r\nERROR: " + e.Message; } if (lFs > 0) { strDet += "\r\n" + lFs.ToString() + " B" + " ( " + RscUtils.toMBstr(lFs) + " ) "; } if (m_strInitErr.Length > 0) { strDet += "\r\n" + "\r\nApp Init ERROR: " + m_strInitErr; } m_sVidInf = strDet; txImgDetails.Text = strDet; }