public override void ViewDidLoad() { base.ViewDidLoad(); TellMeMoreButton.SetTitleColor(UIColor.White, UIControlState.Normal); TellMeMoreButton.Layer.CornerRadius = 6f; OnActivation(d => d(TellMeMoreButton.GetClickedObservable().Subscribe(_ => TellMeMore()))); }
public override void ViewDidLoad() { base.ViewDidLoad(); TellMeMoreButton.BackgroundColor = UIColor.FromRGB(0x27, 0xae, 0x60); TellMeMoreButton.SetTitleColor(UIColor.White, UIControlState.Normal); TellMeMoreButton.Layer.CornerRadius = 6f; OnActivation(d => TellMeMoreButton.GetClickedObservable().Subscribe(_ => TellMeMore()).AddTo(d)); }
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; var appDelegate = UIApplication.SharedApplication.Delegate as AppDelegate; var isPro = appDelegate?.IsPro ?? false; OnActivation(d => d(TellMeMoreButton.GetClickedObservable().Subscribe(_ => TellMeMore()))); 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"; } }
void ReleaseDesignerOutlets() { if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (TellMeMoreButton != null) { TellMeMoreButton.Dispose(); TellMeMoreButton = 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"; } }