Exemplo n.º 1
0
 public void InsertNewObject()
 {
     AddBloodPressureViewController controller =
         new AddBloodPressureViewController("AddBloodPressureViewController", null);
       	controller.Connection = this.db;
     controller.SavedEvent += HandleControllerSavedEvent;
     NavigationController.PushViewController(controller, true);
 }
Exemplo n.º 2
0
 void HandleDataSourceRowSelectedHandler(MonoTouch.Foundation.NSIndexPath indexPath)
 {
     AddBloodPressureViewController controller =
         new AddBloodPressureViewController("AddBloodPressureViewController", null);
       	controller.Connection = this.db;
     BloodPressure bp =
         db.Table<BloodPressure>().OrderBy(pressure => pressure.TimeStamp).ElementAt(indexPath.Row);
     controller.PressureObject = bp;
     controller.SavedEvent += HandleControllerSavedEvent;
     NavigationController.PushViewController(controller, true);
 }