Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.MainActivity);

            adoButton  = FindViewById <Button>(Resource.Id.adoButton);
            ormButton  = FindViewById <Button>(Resource.Id.ormButton);
            outputText = FindViewById <EditText>(Resource.Id.outputText);

            adoButton.Click += (sender, e) => {
                outputText.Text = AdoExample.DoSomeDataAccess();
            };

            ormButton.Click += (sender, e) => {
                outputText.Text = OrmExample.DoSomeDataAccess();
            };
        }
Exemplo n.º 2
0
 private void AdoButton_Click(object sender, EventArgs e)
 {
     OutputTextView.Text = AdoExample.DoSomeDataAccess();
 }