void OnPlusClicked(object sender, EventArgs args)
 {
     var profile = new UserProfile ();
     var profilePage = new ManageUserProfile ();
     profilePage.BindingContext = profile;
     Navigation.PushAsync (profilePage);
 }
Example #2
0
 public int SaveUserProfile(UserProfile item)
 {
     lock (locker) {
         if (item.ID != 0) {
             database.Update(item);
             return item.ID;
         } else {
             return database.Insert(item);
         }
     }
 }