mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
翻页改
This commit is contained in:
parent
4c0d985854
commit
2df93ad813
@ -415,7 +415,7 @@ namespace VPet_Simulator.Windows
|
||||
if(e.Key == Key.Enter
|
||||
&& int.TryParse(TbPage.Text?.Trim(), out int page))
|
||||
{
|
||||
pagination.CurrentPage = Math.Min(0, Math.Max(pagination.MaxPage, page));
|
||||
pagination.CurrentPage = Math.Max(0, Math.Min(pagination.MaxPage, page));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user