예제 #1
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			// Set our view from the "main" layout resource
			SetContentView (Resource.Layout.Main);

			urlText = FindViewById<TextView> (Resource.Id.urlText);
			resultArea = FindViewById<TextView> (Resource.Id.resultArea);
			button = FindViewById<Button> (Resource.Id.button);

			urlText.Text = "http://www.xamarin.com/";

			client = new Client ();

			button.Click += delegate {
				resultArea.Text = "Loading ...";
				Test (urlText.Text);
			};
		}
		public TouchClientViewController (IntPtr handle) : base (handle)
		{
			client = new Client ();
		}