private void Button_Click(object sender, RoutedEventArgs e) { EditWindow ew = new EditWindow(colD); ew.Owner = this; ew.Show(); }
private void ButtonAdd_Click(object sender, RoutedEventArgs e) { EditWindow ed = new EditWindow(); ed.Show(); Close(); }
private void ButtonEdit_Click(object sender, RoutedEventArgs e) { Student st = StudentsDataGrid.SelectedItem as Student; if (st != null) { EditWindow ed = new EditWindow(st); ed.Show(); Close(); } }