Example #1
0
        public TermsOfServicePopup()
        {
            InitializeComponent();
            BindingContext = new TermsOfServiceViewModel();

            if (System.Math.Max(App.ScreenHeight, App.ScreenWidth) < 500)
            {
                PopupTitleAndroid.FontSize *= 0.75;
                PopupTitleIOS.FontSize     *= 0.75;
                //PopupTitle.FontSize *= 0.75;
                //CampaignTitle.FontSize *= 0.75;
                //CampaignPicker.FontSize *= 0.75;
                //SelectButton.FontSize *= 0.75;
            }
        }
        public ActionResult TermsOfService(string id)
        {
            var tos = tosProvider.GetTermsOfService(id);

            if (tos == null)
            {
                return(HttpNotFound());
            }

            var model = new TermsOfServiceViewModel
            {
                Id    = tos.Id,
                Name  = tos.Name,
                Terms = tos.Terms
            };

            return(View(model));
        }