コード例 #1
0
ファイル: GoProViewController.cs プロジェクト: runt18/CodeHub
 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);
 }
コード例 #2
0
        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);
            };
        }
コード例 #3
0
ファイル: GoProViewController.cs プロジェクト: haiiev/CodeHub
        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";
            }
        }