Ejemplo n.º 1
0
        private void add(object sender, EventArgs e)
        {
            var todoItem = new EventItem { EventName = name.Text };
            InsertTodoItem(todoItem);   

            NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
        }
Ejemplo n.º 2
0
 private async void InsertTodoItem(EventItem 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(todoItem);
 }