[TUI] Add Previous Sector command to hex view for improved navigation

This commit is contained in:
2025-10-16 15:45:13 +01:00
parent 35df953491
commit db0de68cb3

View File

@@ -30,6 +30,7 @@ public sealed partial class HexViewWindowViewModel : ViewModelBase
ExitCommand = new RelayCommand(Exit);
BackCommand = new RelayCommand(Back);
NextSectorCommand = new RelayCommand(NextSector);
PreviousSectorCommand = new RelayCommand(PreviousSector);
_parent = parent;
_view = view;
@@ -42,6 +43,15 @@ public sealed partial class HexViewWindowViewModel : ViewModelBase
public ICommand BackCommand { get; }
public ICommand ExitCommand { get; }
public ICommand NextSectorCommand { get; }
public ICommand PreviousSectorCommand { get; }
void PreviousSector()
{
if(CurrentSector <= 0) return;
CurrentSector--;
LoadSector();
}
void NextSector()
{