private void OpenNewContact_OnClick(object sender, RoutedEventArgs e) { var newContact = new NewContactWindow(); newContact.ShowDialog(); ReadDatabase(); }
private void Button_Click(object sender, RoutedEventArgs e) { NewContactWindow newContactWindow = new NewContactWindow(); //newContactWindow.Show(); newContactWindow.ShowDialog(); GetContacts(); }