protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button button = FindViewById <Button>(Resource.Id.MyButton); Android.Webkit.WebView wc = FindViewById <Android.Webkit.WebView>(Resource.Id.webView1); //button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); }; button.Click += delegate { carregador = new util.cAtom("http://www.vicentfernandez.cat/feeds/posts/default", 10); carregador.CarregarDades += CallbackCarregarDades; carregador.Run(); }; }
private void Button_Click_1(object sender, RoutedEventArgs e) { carregador = new util.cAtom("http://www.vicentfernandez.cat/feeds/posts/default", 10); carregador.CarregarDades += callBackCarregador; carregador.Run(); }