Пример #1
0
        private void dgvShowStudent_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int         index = dgvShoStudent.CurrentCell.RowIndex;
            EditStudent std   = new EditStudent(int.Parse(dgvShoStudent.Rows[index].Cells[0].Value.ToString()));

            AllUser.OpenChildForm(std, panelFormControl);
        }
Пример #2
0
        private void picAddNewStudent_Click(object sender, EventArgs e)
        {
            picAddNewStudent.BackColor = Color.LightGray;
            picShowStudent.BackColor   = Color.Gray;

            panelFormControl.Controls.Clear();
            AllUser.OpenChildForm(addStudent, panelFormControl);
        }
Пример #3
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            int index = dgv_list.CurrentCell.RowIndex;

            edsrc = new EditForm(dgv_list.Rows[index].Cells[0].Value.ToString());
            panel_list.Controls.Clear();
            AllUser.OpenChildForm(edsrc, panel_list);
        }
Пример #4
0
        private void _Load()
        {
            picShowStudent.BackColor   = Color.LightGray;
            picAddNewStudent.BackColor = Color.Gray;
            ShowStudent std = new ShowStudent();

            AllUser.OpenChildForm(std, panelFormControl);
        }
Пример #5
0
        private void picAddNewStudent_Click(object sender, EventArgs e)
        {
            picAddNewStudent.BackColor = Color.LightGray;
            picShowStudent.BackColor   = Color.Gray;

            AddStudent std = new AddStudent();

            AllUser.OpenChildForm(std, panelFormControl);
        }
Пример #6
0
        private void btn_course_Click(object sender, EventArgs e)
        {
            if (btn_course.BackColor == SystemColors.ControlDarkDark)
            {
                TurnOffAllButton();

                btn_course.BackColor = SystemColors.ControlDark;
                panel_main.Controls.Clear();
                AllUser.OpenChildForm(crs, panel_main);
            }
        }
Пример #7
0
        private void picStudentClick_Click(object sender, EventArgs e)
        {
            if (picStudentClick.BackColor == Color.Gray)
            {
                picStudentClick.BackColor = Color.LightGray;

                picLoginClick.BackColor = Color.Gray;
                panelFormControl.Controls.Clear();
                AllUser.OpenChildForm(student, panelFormControl);
            }
        }
Пример #8
0
 private void btn_add_Click(object sender, EventArgs e)
 {
     panel_list.Controls.Clear();
     AllUser.OpenChildForm(addsrc, panel_list);
 }
Пример #9
0
 private void _Load()
 {
     panel_main.Controls.Clear();
     AllUser.OpenChildForm(wlc, panel_main);
 }