diff --git a/XLAB2/MainWindow.xaml b/XLAB2/MainWindow.xaml
index 8163d32..d3e3a31 100644
--- a/XLAB2/MainWindow.xaml
+++ b/XLAB2/MainWindow.xaml
@@ -452,7 +452,19 @@
+ Command="{Binding DeleteSelectedLinesCommand}">
+
+
+
+
+
+
diff --git a/XLAB2/SpnmtpDirectoryWindow.xaml b/XLAB2/SpnmtpDirectoryWindow.xaml
index ce9ec27..829c11e 100644
--- a/XLAB2/SpnmtpDirectoryWindow.xaml
+++ b/XLAB2/SpnmtpDirectoryWindow.xaml
@@ -44,6 +44,53 @@
CanUserAddRows="False"
IsReadOnly="True"
HeadersVisibility="Column">
+
+
+
+
+
+
+
+
+
+
-
-
-
diff --git a/XLAB2/SpnmtpDirectoryWindow.xaml.cs b/XLAB2/SpnmtpDirectoryWindow.xaml.cs
index 9980419..3f52c53 100644
--- a/XLAB2/SpnmtpDirectoryWindow.xaml.cs
+++ b/XLAB2/SpnmtpDirectoryWindow.xaml.cs
@@ -1,4 +1,6 @@
using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
namespace XLAB2
{
@@ -13,6 +15,16 @@ namespace XLAB2
DataContext = _viewModel;
}
+ private void DataGridRow_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ var row = sender as DataGridRow;
+ if (row != null)
+ {
+ row.IsSelected = true;
+ row.Focus();
+ }
+ }
+
private async void Window_Loaded(object sender, RoutedEventArgs e)
{
await _viewModel.InitializeAsync();
diff --git a/XLAB2/SpoiDirectoryWindow.xaml b/XLAB2/SpoiDirectoryWindow.xaml
index 9806bd4..3f2cbcb 100644
--- a/XLAB2/SpoiDirectoryWindow.xaml
+++ b/XLAB2/SpoiDirectoryWindow.xaml
@@ -44,6 +44,53 @@
CanUserAddRows="False"
IsReadOnly="True"
HeadersVisibility="Column">
+
+
+
+
+
+
+
+
+
+
-
-
-
diff --git a/XLAB2/SpoiDirectoryWindow.xaml.cs b/XLAB2/SpoiDirectoryWindow.xaml.cs
index 23b473b..c9629c7 100644
--- a/XLAB2/SpoiDirectoryWindow.xaml.cs
+++ b/XLAB2/SpoiDirectoryWindow.xaml.cs
@@ -1,4 +1,6 @@
using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
namespace XLAB2
{
@@ -13,6 +15,16 @@ namespace XLAB2
DataContext = _viewModel;
}
+ private void DataGridRow_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ var row = sender as DataGridRow;
+ if (row != null)
+ {
+ row.IsSelected = true;
+ row.Focus();
+ }
+ }
+
private async void Window_Loaded(object sender, RoutedEventArgs e)
{
await _viewModel.InitializeAsync();