public override void BeginTransition(TKCalendarPresenter presenter, TKViewTransition transition) { main.OldColorIndex = main.ColorIndex; main.ColorIndex = (main.ColorIndex + 1) % main.Colors.Length; TKCalendarMonthPresenter monthPresenter = (TKCalendarMonthPresenter)presenter; monthPresenter.ContentView.BackgroundColor = main.Colors [main.ColorIndex]; }
public override void FinishTransition(TKCalendarPresenter presenter, bool canceled) { if (canceled) { TKCalendarMonthPresenter monthPresenter = (TKCalendarMonthPresenter)presenter; monthPresenter.ContentView.BackgroundColor = main.Colors [main.OldColorIndex]; main.ColorIndex = main.OldColorIndex; } }
public override void FinishTransition(TKCalendarPresenter presenter, bool canceled) { if (canceled) { TKCalendarMonthPresenter monthPresenter = (TKCalendarMonthPresenter)(NSObject)presenter; monthPresenter.ContentView.BackgroundColor = main.Colors [main.OldColorIndex]; main.ColorIndex = main.OldColorIndex; } }
public override void BeginTransition(TKCalendarPresenter presenter, TKViewTransition transition) { main.OldColorIndex = main.ColorIndex; main.ColorIndex = (main.ColorIndex + 1) % main.Colors.Length; TKCalendarMonthPresenter monthPresenter = (TKCalendarMonthPresenter)(NSObject)presenter; monthPresenter.ContentView.BackgroundColor = main.Colors [main.ColorIndex]; }