private void TellMeMore() { var view = new UpgradeViewController(); view.NavigationItem.LeftBarButtonItem = new UIBarButtonItem { Image = Images.Cancel }; view.OnActivation(d => d(view.NavigationItem.LeftBarButtonItem.GetClickedObservable() .Subscribe(_ => view.DismissViewController(true, null)))); PresentViewController(new ThemedNavigationController(view), true, null); }
public override void ViewDidLoad() { base.ViewDidLoad(); TellMeMoreButton.BackgroundColor = UIColor.FromRGB(0x27, 0xae, 0x60); TellMeMoreButton.SetTitleColor(UIColor.White, UIControlState.Normal); TellMeMoreButton.Layer.CornerRadius = 6f; TellMeMoreButton.TouchUpInside += (_, __) => { var view = new UpgradeViewController(); view.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(Images.Cancel, UIBarButtonItemStyle.Done, (s, e) => DismissViewController(true, null)); PresentViewController(new ThemedNavigationController(view), true, null); }; }
public override void ViewDidLoad() { base.ViewDidLoad(); TellMeMoreButton.BackgroundColor = UIColor.FromRGB(0x27, 0xae, 0x60); TellMeMoreButton.SetTitleColor(UIColor.White, UIControlState.Normal); TellMeMoreButton.Layer.CornerRadius = 6f; TellMeMoreButton.TouchUpInside += (_, __) => { var view = new UpgradeViewController(); view.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(Images.Cancel, UIBarButtonItemStyle.Done, (s, e) => DismissViewController(true, null)); PresentViewController(new ThemedNavigationController(view), true, null); }; var appDelegate = UIApplication.SharedApplication.Delegate as AppDelegate; var isPro = appDelegate?.IsPro ?? false; if (isPro) { TitleLabel.Text = "Pro Enabled!"; DescriptionLabel.Text = "Thanks for your continued support! The following Pro features have been activated for your device:\n\n• Private Repositories\n• Enterprise Support\n• Push Notifications"; } }