예제 #1
0
        private void BtnNew_Click(object sender, RoutedEventArgs e)
        {
            StudentUI ui = new StudentUI();

            ui.OnAccept += ManageStudent;
            ui.Show();
        }
예제 #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();
     }
 }