Exemplo n.º 1
0
        private void StudentsDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGrid dataGrid = (DataGrid)sender;

            Student student = (Student)dataGrid.SelectedItem;

            var editWindow = new EditWindow(true);

            editWindow.InsertStudent(student);
            editWindow.Show();
            editWindow.Closed += EditWindow_Closed;
        }