コード例 #1
0
 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;
     }
 }
コード例 #2
0
        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;
            }
        }