Ejemplo n.º 1
0
        private void BtnNew_Click(object sender, RoutedEventArgs e)
        {
            StudentUI ui = new StudentUI();

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