예제 #1
0
        private void EditDepartment_Click(object sender, RoutedEventArgs e)
        {
            var editDepartment = (Department)DepartmentGrid.SelectedItem;

            if (editDepartment != null)
            {
                EditDepartmentWindow editUserPage = new EditDepartmentWindow(editDepartment);
                editUserPage.ShowDialog();
            }
        }
예제 #2
0
        private void NewDepartment_Click(object sender, RoutedEventArgs e)
        {
            EditDepartmentWindow newDepartmentWindows = new EditDepartmentWindow(null);

            newDepartmentWindows.ShowDialog();
        }