private void Update_Item(object sender, RoutedEventArgs e) { TodoItemViewModels ViewModels = ((App)App.Current).ViewModels; ViewModels.SelectedItem = ViewModels.GetItemByItemId(Id.Text); ViewModels.UpdatingItem(); }
private void Share_Item(object sender, RoutedEventArgs e) { TodoItemViewModels ViewModels = ((App)App.Current).ViewModels; var item = ViewModels.GetItemByItemId(Id.Text); ViewModels.SharingItem = item; DataTransferManager.ShowShareUI(); }
private void CheckBox_Click(object sender, RoutedEventArgs e) { TodoItemViewModels ViewModels = ((App)App.Current).ViewModels; ((App)App.Current).DataBaseForTodoList.Update(ViewModels.GetItemByItemId(Id.Text)); }