Beispiel #1
0
 public frmAdmin()
 {
     InitializeComponent();
     _userManagementControl             = new UserManagementControl();
     _studentManagementControl          = new StudentManagementControl();
     _teacherManagementControl          = new TeacherManagementControl();
     _userManagementControl.Location    = new Point((panel2.Width + _userManagementControl.Width) / 2 - _userManagementControl.Width, (panel2.Height + _userManagementControl.Height) / 2 - _userManagementControl.Height);
     _studentManagementControl.Location = new Point((panel2.Width + _studentManagementControl.Width) / 2 - _studentManagementControl.Width, (panel2.Height + _studentManagementControl.Height) / 2 - _studentManagementControl.Height);
     _teacherManagementControl.Location = new Point((panel2.Width + _teacherManagementControl.Width) / 2 - _teacherManagementControl.Width, (panel2.Height + _teacherManagementControl.Height) / 2 - _teacherManagementControl.Height);
 }
        public frmAdmin()
        {
            InitializeComponent();

            _userManagementControl    = new UserManagementControl();
            _studentManagementControl = new StudentManagementControl();
            _teacherManagementControl = new TeacherManagementControl();
            _classManagementControl   = new ClassManagementControl();
            _termManagementControl    = new TermManagementControls();
            _teacherScheduleControl   = new TeacherScheduleControl();
            _groupStudentControl      = new GroupStudentControl();

            _userManagementControl.Location    = new Point((panel2.Width + _userManagementControl.Width) / 2 - _userManagementControl.Width, (panel2.Height + _userManagementControl.Height) / 2 - _userManagementControl.Height);
            _studentManagementControl.Location = new Point((panel2.Width + _studentManagementControl.Width) / 2 - _studentManagementControl.Width, (panel2.Height + _studentManagementControl.Height) / 2 - _studentManagementControl.Height);
            _teacherManagementControl.Location = new Point((panel2.Width + _teacherManagementControl.Width) / 2 - _teacherManagementControl.Width, (panel2.Height + _teacherManagementControl.Height) / 2 - _teacherManagementControl.Height);
            _classManagementControl.Location   = new Point((panel2.Width + _classManagementControl.Width) / 2 - _classManagementControl.Width, (panel2.Height + _classManagementControl.Height) / 2 - _classManagementControl.Height);
            _termManagementControl.Location    = new Point((panel2.Width + _termManagementControl.Width) / 2 - _termManagementControl.Width, (panel2.Height + _termManagementControl.Height) / 2 - _termManagementControl.Height);
            _teacherScheduleControl.Location   = new Point((panel2.Width + _teacherScheduleControl.Width) / 2 - _teacherScheduleControl.Width, (panel2.Height + _teacherScheduleControl.Height) / 2 - _teacherScheduleControl.Height);
            _groupStudentControl.Location      = new Point((panel2.Width + _groupStudentControl.Width) / 2 - _groupStudentControl.Width, (panel2.Height + _groupStudentControl.Height) / 2 - _groupStudentControl.Height);
        }