feat: disable analysis buttons

capture button enabled when all combobox filled
combobox buttons enabled when can interact
This commit is contained in:
2026-08-10 09:43:33 +03:00
parent 68843c6f95
commit 19fe72bdc3
2 changed files with 25 additions and 0 deletions
@@ -161,6 +161,7 @@
Grid.Row="3"
HorizontalAlignment="Stretch"
IsEditable="False"
IsEnabled="{Binding CanInteract}"
IsVisible="{Binding IsNewRecord}"
ItemsSource="{Binding SeparatorComboBoxItems}"
PlaceholderText="Тип сепаратора"
@@ -201,6 +202,7 @@
Grid.Row="3"
HorizontalAlignment="Stretch"
IsEditable="False"
IsEnabled="{Binding CanInteract}"
IsVisible="{Binding IsNewRecord}"
ItemsSource="{Binding BrandComboBoxItems}"
PlaceholderText="Марка пробы"
@@ -1091,6 +1093,7 @@
Command="{Binding CaptureImageCommand}"
Grid.Row="1"
HorizontalAlignment="Stretch"
IsEnabled="{Binding CanCapture}"
IsVisible="{Binding !ImagesIsCapturing}"
>
<TextBlock Text="Получить изображения"/>