private void ListViewLogMouseDoubleClick(object sender, MouseButtonEventArgs e) { if (listViewLog.SelectedIndex != -1) { var item = (LogItem)listViewLog.SelectedItem; if (item.Data != null) { var dlg = new ShowOutput { Output = item.Data.outputReport }; dlg.ShowDialog(); } } }
private void MenuItemClick(object sender, RoutedEventArgs e) { if (listViewLog.SelectedIndex == -1) { return; } var item = (LogItem)listViewLog.SelectedItem; if (item.Data == null) { return; } var dlg = new ShowOutput { Output = item.Data.outputReport }; dlg.ShowDialog(); }