private async void AddSettingBtn_Click(object sender, RoutedEventArgs e) { SettingItemDialog dialog = new SettingItemDialog(null); ContentDialogResult result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { updateList(null); } }
private async void SettingList_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e) { Setting item = (Setting)((ListView)sender).SelectedItem; SettingItemDialog dialog = new SettingItemDialog(item.id); ContentDialogResult result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { updateList(null); } }