chore: rename Previous method to Prev, delete GoTo method
This commit is contained in:
1 parent
f6ff682bde
commit
14bb9e0727
1 file changed
+2
-13
@@ -186,20 +186,9 @@ namespace HandyControl.Controls
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void JumpTo(int index) => _jumpToIndex = index;
|
public void JumpTo(int index) => _jumpToIndex = index;
|
||||||
|
|
||||||
public void Next()
|
public void Next() => PageIndex++;
|
||||||
{
|
|
||||||
PageIndex = PageIndex + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Previous()
|
public void Prev() => PageIndex--;
|
||||||
{
|
|
||||||
PageIndex = PageIndex - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void GoTo(int index)
|
|
||||||
{
|
|
||||||
PageIndex = index;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnMouseWheel(MouseWheelEventArgs e)
|
protected override void OnMouseWheel(MouseWheelEventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user