From 684c65c2606fd0ecc0eb6dd30adf620c92301bf8 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Thu, 19 Jul 2018 12:56:12 +0100 Subject: [PATCH] revert file. --- .../Presenters/CarouselPresenter.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Avalonia.Controls/Presenters/CarouselPresenter.cs b/src/Avalonia.Controls/Presenters/CarouselPresenter.cs index 42910cdc48..1d5a187a73 100644 --- a/src/Avalonia.Controls/Presenters/CarouselPresenter.cs +++ b/src/Avalonia.Controls/Presenters/CarouselPresenter.cs @@ -39,7 +39,7 @@ namespace Avalonia.Controls.Presenters Carousel.PageTransitionProperty.AddOwner(); private int _selectedIndex = -1; - // private Task _current; + // private Task _current; private Task _currentTransition; private int _queuedTransitionIndex = -1; @@ -131,9 +131,9 @@ namespace Avalonia.Controls.Presenters #pragma warning disable 4014 var newIndex = SelectedIndex; - if (SelectedIndex < 0) + if(SelectedIndex < 0) { - if (Items != null && Items.Count() > 0) + if(Items != null && Items.Count() > 0) { newIndex = 0; } @@ -142,11 +142,11 @@ namespace Avalonia.Controls.Presenters newIndex = -1; } } - + MoveToPage(-1, newIndex); #pragma warning restore 4014 } - break; + break; } } @@ -226,7 +226,7 @@ namespace Avalonia.Controls.Presenters int fromIndex = (int)e.OldValue; int toIndex = (int)e.NewValue; - for (; ; ) + for (;;) { _currentTransition = MoveToPage(fromIndex, toIndex); await _currentTransition; @@ -251,4 +251,4 @@ namespace Avalonia.Controls.Presenters } } } -} +} \ No newline at end of file