public override void ViewDidLoad() { base.ViewDidLoad(); Title = Application.LocalizedString("GeneralHelp"); if (!App.Locator.Login.GetSavedFirstLaunchTuto()) { NavigationController.NavigationBarHidden = true; } _pageTitles = new List <string> { Application.LocalizedString("IMEIAndPinHelp") , Application.LocalizedString("CreditsHelp") , Application.LocalizedString("FirstUseHelp") }; _images = new List <string> { "TutoAddSeekios", "TutoCredits", "TutoMode" }; _pageViewController = Storyboard.InstantiateViewController("PageViewController") as UIPageViewController; _pageViewController.DataSource = new TutorialBackgroundSource(this, _pageTitles); var startVC = ViewControllerAtIndex(0) as TutorialForegroundView; var viewControllers = new UIViewController[] { startVC }; _pageViewController.SetViewControllers(viewControllers, UIPageViewControllerNavigationDirection.Forward, true, null); _pageViewController.View.Frame = new CGRect(0, 0, View.Frame.Width, View.Frame.Size.Height - 42); AddChildViewController(_pageViewController); View.AddSubview(_pageViewController.View); _pageViewController.DidMoveToParentViewController(this); _pageViewController.WillTransition += PageViewController_WillTransition; ButtonSkip.TouchUpInside += ButtonSkip_TouchUpInside; ButtonSkip.SetTitle(Application.LocalizedString("SkipButton"), UIControlState.Normal); }
public void UpdateSkipButton() { if (IsTutoFinished) { ButtonSkip.SetTitle(Application.LocalizedString("DoneButton"), UIControlState.Normal); } else { ButtonSkip.SetTitle(Application.LocalizedString("SkipButton"), UIControlState.Normal); } }