init
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user