Example #1
0
 public Task <int> DeleteGoalItemAsync(GoalModel item)
 {
     return(Database.DeleteAsync(item));
 }
Example #2
0
 public Task <int> UpdateGoalItemAsync(GoalModel item)
 {
     return(Database.UpdateAsync(item));
 }
Example #3
0
 public Task <int> InsertGoalItemAsync(GoalModel item)
 {
     return(Database.InsertAsync(item));
 }
 public EditGoalViewModel(GoalModel goal)
 {
     this.goal = goal;
     InitializeCommand();
     InitializeData(this.goal.GoalId);
 }
Example #5
0
        async void GoalList_ItemSelected(System.Object sender, Xamarin.Forms.SelectedItemChangedEventArgs e)
        {
            GoalModel goal = (GoalModel)e.SelectedItem;

            await this.Navigation.PushAsync(new EditGoalPage(goal));
        }
 public EditGoalPage(GoalModel goal)
 {
     InitializeComponent();
     this.BindingContext = new EditGoalViewModel(goal);
 }