Esempio n. 1
0
 private void localizeViews()
 {
     TitleLabel.Text       = Resources.SiriClipboardInstructionTitle;
     DescriptionLabel.Text = Resources.SiriClipboardInstructionDescription;
     OkayButton.SetTitle(Resources.Ok, UIControlState.Normal);
     DoNotShowAgainButton.SetTitle(Resources.SiriClipboardInstructionDoNotShowAgain, UIControlState.Normal);
 }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
        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);
        }