private void Button_Click(object sender, RoutedEventArgs e) { NewContactWindow newContactWindow = new NewContactWindow(); newContactWindow.ShowDialog(); ReadDataBase(); }
private void buttonNewContact_Click(object sender, RoutedEventArgs e) { NewContactWindow newContactWindow = new NewContactWindow() { Owner = this }; newContactWindow.ShowDialog(); ReadDatabase(); }