private void DeleteButton_Click(object sender, RoutedEventArgs e) { if (database.SelectedValue != null) { var item = int.Parse(database.SelectedValue.ToString()); var deleteDictionary = new DeleteDictionaryWindow(item); deleteDictionary.Show(); deleteDictionary.deleteDictionary += Refresh; } }
private void DeleteDictionary_Click(object sender, RoutedEventArgs e) { try { var deleteDictionaryWindow = new DeleteDictionaryWindow(_dal, userId); deleteDictionaryWindow.Show(); } catch (Exception ex) { Helper.log.Error(ex.ToString()); MaterialMessageBox.ShowError(ex.ToString()); } }