private async void AddUserBtn_Click(object sender, RoutedEventArgs e) { UserItemDialog dialog = new UserItemDialog(null); ContentDialogResult result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { updateList(null); } }
private async void UserList_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e) { User item = (User)((ListView)sender).SelectedItem; UserItemDialog dialog = new UserItemDialog(item.id); ContentDialogResult result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { updateList(null); } }