Пример #1
0
        public override UIViewController[] PopToRootViewController(bool animated)
        {
            UIViewController[] vcs = null;
            if (VisibleViewController != ViewControllers.FirstOrDefault())
            {
                regularPop = TopViewController != ViewControllers.FirstOrDefault();
                vcs        = base.PopToRootViewController(animated);
            }

            return(vcs);
        }
Пример #2
0
        void handleUpdatedSelected(object sender, EventArgs e)
        {
            refreshForUpdatedSelected();

            var current = ViewControllers.FirstOrDefault();

            if (current != null)
            {
                Analytics.TrackPageViewStart(current, childPageName(current), WuClient.Shared.Selected);
            }
        }
Пример #3
0
        async partial void closeClicked(NSObject sender)
        {
            updateToolbarButtons(true);

            await DismissViewControllerAsync(true);

            var current = ViewControllers.FirstOrDefault();

            if (current != null)
            {
                Analytics.TrackPageViewStart(current, childPageName(current), WuClient.Shared.Selected);
            }
        }
Пример #4
0
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            updateToolbarButtons(false);

            if (segue.Identifier.Equals("locationsSegue", StringComparison.OrdinalIgnoreCase))
            {
                var current = ViewControllers.FirstOrDefault();

                if (current != null)
                {
                    Analytics.TrackPageViewEnd(ViewControllers.FirstOrDefault(), WuClient.Shared.Selected);
                }
            }
        }