mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[TUI] Add Previous Sector command to hex view for improved navigation
This commit is contained in:
@@ -30,6 +30,7 @@ public sealed partial class HexViewWindowViewModel : ViewModelBase
|
|||||||
ExitCommand = new RelayCommand(Exit);
|
ExitCommand = new RelayCommand(Exit);
|
||||||
BackCommand = new RelayCommand(Back);
|
BackCommand = new RelayCommand(Back);
|
||||||
NextSectorCommand = new RelayCommand(NextSector);
|
NextSectorCommand = new RelayCommand(NextSector);
|
||||||
|
PreviousSectorCommand = new RelayCommand(PreviousSector);
|
||||||
|
|
||||||
_parent = parent;
|
_parent = parent;
|
||||||
_view = view;
|
_view = view;
|
||||||
@@ -42,6 +43,15 @@ public sealed partial class HexViewWindowViewModel : ViewModelBase
|
|||||||
public ICommand BackCommand { get; }
|
public ICommand BackCommand { get; }
|
||||||
public ICommand ExitCommand { get; }
|
public ICommand ExitCommand { get; }
|
||||||
public ICommand NextSectorCommand { get; }
|
public ICommand NextSectorCommand { get; }
|
||||||
|
public ICommand PreviousSectorCommand { get; }
|
||||||
|
|
||||||
|
void PreviousSector()
|
||||||
|
{
|
||||||
|
if(CurrentSector <= 0) return;
|
||||||
|
|
||||||
|
CurrentSector--;
|
||||||
|
LoadSector();
|
||||||
|
}
|
||||||
|
|
||||||
void NextSector()
|
void NextSector()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user