private void localizeViews() { TitleLabel.Text = Resources.SiriClipboardInstructionTitle; DescriptionLabel.Text = Resources.SiriClipboardInstructionDescription; OkayButton.SetTitle(Resources.Ok, UIControlState.Normal); DoNotShowAgainButton.SetTitle(Resources.SiriClipboardInstructionDoNotShowAgain, UIControlState.Normal); }
void ReleaseDesignerOutlets() { if (DoNotShowAgainButton != null) { DoNotShowAgainButton.Dispose(); DoNotShowAgainButton = null; } if (OkayButton != null) { OkayButton.Dispose(); OkayButton = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); localizeViews(); PreferredContentSize = new CGSize( cardWidth, cardHeight ); OkayButton.Rx().Tap() .Subscribe(ViewModel.CloseWithDefaultResult) .DisposedBy(DisposeBag); DoNotShowAgainButton.Rx() .BindAction(ViewModel.DoNotShowAgain) .DisposedBy(DisposeBag); }