private void PageState(FavouritesPageState action) { switch (action) { case FavouritesPageState.FromWhereTo: fromWhereTo = true; break; case FavouritesPageState.Favourites: if (!isFavouritesView) { ShowFavourites(); } break; case FavouritesPageState.Recent: if (isFavouritesView) { ShowRecent(); } break; } }