using System; using MonoTouch.Foundation; using MonoTouch.UIKit; using System.CodeDom.Compiler; using PoolExpert.Mobile.Library.Utilities; using System.IO; using System.Text; using System.Web; namespace PoolExpert.Mobile.iOS { partial class TermsAndConditionController : UIViewController { public TermsAndConditionController(IntPtr handle) : base(handle) { } public override void ViewDidLoad() { base.ViewDidLoad(); this.View.TintColor = UIColor.White; this.cancelButton.Clicked += cancelButton_Clicked; this.cancelButton.TintColor = UIColor.White; this.Title = Localization.GetString("TermsOfUse"); UITextAttributes attr = new UITextAttributes(); attr.TextColor = UIColor.White; this.NavigationController.NavigationBar.SetTitleTextAttributes(attr); var webView = new UIWebView(View.Bounds); View.AddSubview(webView); var html = "<html><body><br /><br /><br /><p>Conditions d’utilisation de l’application <br /> Les conditions énoncées dans la présente (ci-après collectivement l’ « entente ») constituent l’entente entre vous et Québecor Média inc. faisant affaires sous Pour pouvoir utiliser l’application, vous devez accepter les conditions qui suivent. En téléchargeant, installant ou utilisant l’application proposée par QMI dont l’objectif la présente entente.</p></body></html>"; webView.LoadHtmlString(html.ToString(), NSBundle.MainBundle.BundleUrl); } void cancelButton_Clicked(object sender, EventArgs e) { DismissViewController(true, null); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)