Ejemplo n.º 1
0
        /// <summary>
        /// Displays the first run modal dialog when the view appears, if it's the first run.
        /// </summary>
        /// <param name="animated"></param>
        public override void ViewDidAppear(bool animated)
        {
            base.ViewDidAppear(animated);
            NavigationController.ToolbarHidden = false;

            // Ask to see the help screen on first run.
            if (Settings.IsFirstRun)
            {
                Settings.IsFirstRun = false;

                UIAlertView alertview = new UIAlertView();
                alertview.Title   = "Welcome to Flashback";
                alertview.Message = "It's recommended you read the help before starting.\n Would you like to do this now?";
                alertview.AddButton("Yes");
                alertview.AddButton("Later");

                _firstRunDelegate = new FirstRunDelegate();
                _firstRunDelegate.ParentController = this;
                alertview.Delegate = _firstRunDelegate;

                alertview.Show();
            }
        }
        /// <summary>
        /// Displays the first run modal dialog when the view appears, if it's the first run.
        /// </summary>
        /// <param name="animated"></param>
        public override void ViewDidAppear(bool animated)
        {
            base.ViewDidAppear(animated);
            NavigationController.ToolbarHidden = false;

            // Ask to see the help screen on first run.
            if (Settings.IsFirstRun)
            {
                Settings.IsFirstRun = false;

                UIAlertView alertview = new UIAlertView();
                alertview.Title = "Welcome to Flashback";
                alertview.Message = "It's recommended you read the help before starting.\n Would you like to do this now?";
                alertview.AddButton("Yes");
                alertview.AddButton("Later");

                _firstRunDelegate = new FirstRunDelegate();
                _firstRunDelegate.ParentController = this;
                alertview.Delegate = _firstRunDelegate;

                alertview.Show();
            }
        }