Beispiel #1
0
        void HandleDismissed(object sender, UIButtonEventArgs e)
        {
            if (e.ButtonIndex == 0)
            {
                // Exit
                iOSUtilities.ForceCloseThisApp();
            }
            else if (e.ButtonIndex == 1)
            {
                // Try again
                StartAuthentication();
            }
            else if (e.ButtonIndex == 2)
            {
                // Change connection settings
                SelectServerViewController ssvc = new SelectServerViewController(false);
                ssvc.DismissEvent += (bool cancelled) =>
                {
                    if (!cancelled)
                    {
                        Dismiss();
                    }
                };

                this.NavigationController.PushViewController(ssvc, true);
            }
            else
            {
                // Work Offline
                Dismiss();
            }
        }
Beispiel #2
0
        private void OpenSelectServer()
        {
            SelectServerViewController ssvc = new SelectServerViewController(true);

            ssvc.DismissEvent        += HandleSelectServerDismissEvent;
            ssvc.CancelDownloadEvent += HandleCancelDownloadEvent;

            CustomNavigationController navController = new CustomNavigationController();

            navController.SetViewControllers(new UIViewController[] { ssvc }, true);
            AppDelegate.Current.Nav.PresentViewController(navController, true, null);
        }