private void button1_Click(object sender, RoutedEventArgs e) { AddEditWindow editWindow = new AddEditWindow(); editWindow.Show(); // editWindow.textBoxMovieName = dataGrid.SelectedItem);????? }
private void button_Click(object sender, RoutedEventArgs e) { AddEditWindow AddWindow = new AddEditWindow(); if (AddWindow.DialogResult == true) { AddWindow.ShowDialog(); } }