36 lines
974 B
C#
36 lines
974 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Input;
|
|
using DTS.Common.Classes.Viewer.TestMetadata;
|
|
using DTS.Common.Interface;
|
|
using DTS.Common.Interface.TestDefinition;
|
|
|
|
// ReSharper disable CheckNamespace
|
|
|
|
namespace DTS.Viewer.TestSummaryList
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for TestSummaryListView.xaml
|
|
/// </summary>
|
|
public partial class TestSummaryListView : ITestSummaryListView
|
|
{
|
|
public TestSummaryListView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void TestSummary_KeyUp(object sender, KeyEventArgs e)
|
|
{
|
|
if ((sender as ListView)?.SelectedItem is TestSummary ts)
|
|
{
|
|
if (e.Key == Key.Space)
|
|
{
|
|
ts.IsSelected = !ts.IsSelected;
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
else { e.Handled = false; }
|
|
}
|
|
}
|
|
}
|