private void change_Click_1(object sender, RoutedEventArgs e) { var selected = (DataRowView)dataGrid1.SelectedItems[0]; //MessageBox.Show(selected[0].ToString()); if (selected != null) { WpfApplication1.Authors win1 = new WpfApplication1.Authors(selected); win1.Show(); } // win1.year = }
private void insert_Click(object sender, RoutedEventArgs e) { WpfApplication1.Authors win1 = new WpfApplication1.Authors(); win1.Show(); }