private void m_btnExtOpen_Click(object sender, System.Windows.RoutedEventArgs e) { if (m_siInPlayer == null) { return; } string sPath = m_siInPlayer.Path; DoStop(); string sErr = ""; if (!RscStore_Storage.LaunchFile(sPath, out sErr)) { if (sErr.Length > 0) { MessageBox.Show(sErr); } else { MessageBox.Show("No app installed to open this file."); } } }
private void m_btnExtOpen_Click(object sender, System.Windows.RoutedEventArgs e) { if (m_iIndex < 0) { return; } if (m_iIndex >= m_aImages.Count) { return; } string sErr = ""; if (!RscStore_Storage.LaunchFile(m_aImages[m_iIndex], out sErr)) { if (sErr.Length > 0) { MessageBox.Show(sErr); } else { MessageBox.Show("No app installed to open this file."); } } }