private void OpenFile() { if (m_searchResultsListBox.SelectedItem != null) { ListBoxFileItem fileItem = (ListBoxFileItem)m_searchResultsListBox.SelectedItem; OpenFileCommand.Execute(fileItem.File, m_connection); } }
private void OpenFile() { Vault.Currency.Entities.FileIteration file = m_model.SelectedContent.FirstOrDefault() as Vault.Currency.Entities.FileIteration; if (file != null) { OpenFileCommand.Execute(file, m_conn); } }