Esempio n. 1
0
        private bool NavigateUp(IPreviousNavigator navigator)
        {
            if (navigator == null)
            {
                return(false);
            }

            bool navigated = navigator.Previous();

            return(navigated);
        }
Esempio n. 2
0
        private bool GoPrevious()
        {
            Fragment           frag      = SupportFragmentManager.FindFragmentByTag(MainContentFragmentTag);
            IPreviousNavigator navigator = frag as IPreviousNavigator;

            if (navigator == null)
            {
                return(false);
            }

            return(navigator.Previous());
        }
Esempio n. 3
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            bool showingDetails = !MenuDrawerToggle.DrawerIndicatorEnabled;

            if (item.ItemId == Android.Resource.Id.Home && showingDetails)
            {
                IPreviousNavigator navigator = SupportFragmentManager.FindFragmentByTag(ModuleDetailFragmentTag) as IPreviousNavigator;

                if (navigator == null || !navigator.Previous())
                {
                    ShowModuleSelectionScreen();
                    return(true);
                }
            }

            return(base.OnOptionsItemSelected(item));
        }