예제 #1
0
 private void ButtonSave_Click(object sender, RoutedEventArgs e)
 {
     var todoItem = new TodoItem { Text = TodoInput.Text, To = this.Phone.Text };
     InsertTodoItem(todoItem);
 }
예제 #2
0
 public MyText(TodoItem source)
 {
     this.source = source;
 }
예제 #3
0
 private async void InsertTodoItem(TodoItem todoItem)
 {
     // This code inserts a new TodoItem into the database. When the operation completes
     // and Mobile Services has assigned an Id, the item is added to the CollectionView
     await todoTable.InsertAsync(todoItem);
     items.Add(new MyText(todoItem));
 }