private void BtnNew_Click(object sender, RoutedEventArgs e) { StudentUI ui = new StudentUI(); ui.OnAccept += ManageStudent; ui.Show(); }
private void DgData_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (DgData.SelectedValue != null) { StudentUI ui = new StudentUI((Student)DgData.SelectedValue); ui.OnAccept += ManageStudent; ui.Show(); } }