mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:36:30 +00:00
Errors sending to UI
notifying client of AI model conversion
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
CanUserResizeColumns="False"
|
||||
SelectionChanged="DetectionDataGrid_SelectionChanged"
|
||||
x:FieldModifier="public"
|
||||
PreviewKeyDown="OnKeyBanActivity"
|
||||
>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTemplateColumn Width="50" Header="Клавіша" CanUserSort="False">
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using Azaion.Common.DTO;
|
||||
using Azaion.Common.Extensions;
|
||||
using Azaion.CommonSecurity.DTO;
|
||||
|
||||
namespace Azaion.Common.Controls;
|
||||
|
||||
@@ -86,4 +88,11 @@ public partial class DetectionClasses
|
||||
{
|
||||
DetectionDataGrid.SelectedIndex = keyNumber;
|
||||
}
|
||||
|
||||
private void OnKeyBanActivity(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Key.In(Key.Enter, Key.Down, Key.Up, Key.PageDown, Key.PageUp))
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user