Ejemplo n.º 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();
                }
            }
        }
Ejemplo n.º 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();
        }