fix: typo

This commit is contained in:
2026-04-14 18:00:20 +03:00
parent 0c24f05b4f
commit 233f3f9471
2 changed files with 5 additions and 5 deletions
@@ -30,7 +30,7 @@ public partial class SeparatorCalibrationViewModel : ViewModelBase
[ObservableProperty] public partial SeparatorRecord? SelectedRecord { get; set; } [ObservableProperty] public partial SeparatorRecord? SelectedRecord { get; set; }
[ObservableProperty] public partial SeparatorRecord EditingRecord { get; set; } [ObservableProperty] public partial SeparatorRecord EditingRecord { get; set; }
[ObservableProperty] public partial int MainSectionsCurrentIndex { get; set; } = 0; [ObservableProperty] public partial int MainSectionCurrentIndex { get; set; } = 0;
[ObservableProperty] public partial bool MainSectionCanScrollBackward { get; set; } = false; [ObservableProperty] public partial bool MainSectionCanScrollBackward { get; set; } = false;
[ObservableProperty] public partial bool MainSectionCanScrollForward { get; set; } = true; [ObservableProperty] public partial bool MainSectionCanScrollForward { get; set; } = true;
[ObservableProperty] public partial bool MainSectionIsScrolling { get; set; } = true; [ObservableProperty] public partial bool MainSectionIsScrolling { get; set; } = true;
@@ -293,7 +293,7 @@ public partial class SeparatorCalibrationViewModel : ViewModelBase
} }
// Команда изменения основной секции (информация <-> изображения) // Команда изменения основной секции (информация <-> изображения)
[RelayCommand] private void SwitchMainSection() => MainSectionsCurrentIndex = MainSectionsCurrentIndex == 0 ? 1 : 0; [RelayCommand] private void SwitchMainSection() => MainSectionCurrentIndex = MainSectionCurrentIndex == 0 ? 1 : 0;
// Команда навигации по изображениям // Команда навигации по изображениям
[RelayCommand] private void ImagesSectionPrevious() => ImagesSectionCurrentIndex--; [RelayCommand] private void ImagesSectionPrevious() => ImagesSectionCurrentIndex--;
@@ -88,7 +88,7 @@
CanScrollBackward="{Binding MainSectionCanScrollBackward}" CanScrollBackward="{Binding MainSectionCanScrollBackward}"
CanScrollForward="{Binding MainSectionCanScrollForward}" CanScrollForward="{Binding MainSectionCanScrollForward}"
ClipToBounds="True" ClipToBounds="True"
CurrentIndex="{Binding MainSectionsCurrentIndex}" CurrentIndex="{Binding MainSectionCurrentIndex}"
IsScrolling="{Binding MainSectionIsScrolling}" IsScrolling="{Binding MainSectionIsScrolling}"
Orientation="Vertical"> Orientation="Vertical">
@@ -350,7 +350,7 @@
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
Command="{Binding SwitchMainSectionCommand}" Command="{Binding SwitchMainSectionCommand}"
Content="К информации" Content="К информации"
IsVisible="{Binding MainSectionsCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=1}"> IsVisible="{Binding MainSectionCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=1}">
<TextBlock Text="К информации"/> <TextBlock Text="К информации"/>
@@ -370,7 +370,7 @@
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
Command="{Binding SwitchMainSectionCommand}" Command="{Binding SwitchMainSectionCommand}"
Content="К изображениям" Content="К изображениям"
IsVisible="{Binding MainSectionsCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=0}"> IsVisible="{Binding MainSectionCurrentIndex, Converter={StaticResource EqualsConverter}, ConverterParameter=0}">
<TextBlock Text="К изображениям"/> <TextBlock Text="К изображениям"/>