예제 #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            Title = Resources.About;

            PrivacyPolicyLabel.Text  = Resources.PrivacyPolicy;
            TermsOfServiceLabel.Text = Resources.TermsOfService;
            LicensesLabel.Text       = Resources.Licenses;

            PrivacyPolicyView.InsertSeparator(UIKit.UIRectEdge.Top);
            PrivacyPolicyView.InsertSeparator();
            TermsOfServiceView.InsertSeparator();
            LicensesView.InsertSeparator();

            LicensesView.Rx()
            .BindAction(ViewModel.OpenLicensesView)
            .DisposedBy(DisposeBag);

            PrivacyPolicyView.Rx()
            .BindAction(ViewModel.OpenPrivacyPolicyView)
            .DisposedBy(DisposeBag);

            TermsOfServiceView.Rx()
            .BindAction(ViewModel.OpenTermsOfServiceView)
            .DisposedBy(DisposeBag);
        }
예제 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            Title = Resources.About;

            this.Bind(LicensesView.Rx().Tap(), ViewModel.OpenLicensesView);
            this.Bind(PrivacyPolicyView.Rx().Tap(), ViewModel.OpenPrivacyPolicyView);
            this.Bind(TermsOfServiceView.Rx().Tap(), ViewModel.OpenTermsOfServiceView);
        }