Exemple #1
0
        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();
                }
            }
        }
Exemple #2
0
        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();
        }