Beispiel #1
0
        public override void OnBackPressed()
        {
            Person p = new Person()
            {
                Id  = int.Parse(FindViewById <TextView>(Resource.Id.editPersonId).Text),
                Fn  = FindViewById <EditText>(Resource.Id.editPersonFn).Text,
                Ln  = FindViewById <EditText>(Resource.Id.editPersonLn).Text,
                Age = int.Parse(FindViewById <EditText>(Resource.Id.editPersonAge).Text)
            };

            db.Update(p);

            base.OnBackPressed();
        }
Beispiel #2
0
 public void Update(T item) => Handler.Update(item);