示例#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);
 }
示例#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;
            }
        }
示例#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);
        }