Skip to content

Commit 14bb9e0

Browse files
committed
chore: rename Previous method to Prev, delete GoTo method
1 parent f6ff682 commit 14bb9e0

File tree

1 file changed

+2
-13
lines changed
  • src/Shared/HandyControl_Shared/Controls/Cover/CoverFlow

1 file changed

+2
-13
lines changed

src/Shared/HandyControl_Shared/Controls/Cover/CoverFlow/CoverFlow.cs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,9 @@ public void AddRange(IEnumerable<object> contentList)
186186
/// </summary>
187187
public void JumpTo(int index) => _jumpToIndex = index;
188188

189-
public void Next()
190-
{
191-
PageIndex = PageIndex + 1;
192-
}
189+
public void Next() => PageIndex++;
193190

194-
public void Previous()
195-
{
196-
PageIndex = PageIndex - 1;
197-
}
198-
199-
public void GoTo(int index)
200-
{
201-
PageIndex = index;
202-
}
191+
public void Prev() => PageIndex--;
203192

204193
protected override void OnMouseWheel(MouseWheelEventArgs e)
205194
{

0 commit comments

Comments
 (0)