private void BtnUpdate_Click(object sender, RoutedEventArgs e) { NewWordWindow newWordWindow = new NewWordWindow(_wordManager.Words[_selectedIndex].Id); newWordWindow.ShowDialog(); _wordManager.ListWords(dtgWords, txtSearch.Text); }
private void BtnNew_Click(object sender, System.Windows.RoutedEventArgs e) { NewWordWindow newWordWindow = new NewWordWindow(); newWordWindow.ShowDialog(); _wordManager.ListWords(dtgWords, txtSearch.Text); }