private void Button_Borrar_Click(object sender, RoutedEventArgs e) { KeyStoreFile seleccionado = (KeyStoreFile)ItemGridView2.SelectedItem; if (seleccionado != null) { PreDeleteStore(); } }
private void DeleteStore() { KeyStoreFile seleccionado = (KeyStoreFile)ItemGridView2.SelectedItem; if (seleccionado != null) { try { storeData.DeleteData(seleccionado.Name); storeData.LoadData(); _source = storeData.GetGroupsByCategory(); ItemGridView2.ItemsSource = storeData.Collection; EvaluateDeleteButton(storeData); } catch (FileNotFoundException) { // Se ignora } } }