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); }
private void picAddNewStudent_Click(object sender, EventArgs e) { picAddNewStudent.BackColor = Color.LightGray; picShowStudent.BackColor = Color.Gray; panelFormControl.Controls.Clear(); AllUser.OpenChildForm(addStudent, panelFormControl); }
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); }
private void _Load() { picShowStudent.BackColor = Color.LightGray; picAddNewStudent.BackColor = Color.Gray; ShowStudent std = new ShowStudent(); AllUser.OpenChildForm(std, panelFormControl); }
private void picAddNewStudent_Click(object sender, EventArgs e) { picAddNewStudent.BackColor = Color.LightGray; picShowStudent.BackColor = Color.Gray; AddStudent std = new AddStudent(); AllUser.OpenChildForm(std, panelFormControl); }
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); } }
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); } }
private void btn_add_Click(object sender, EventArgs e) { panel_list.Controls.Clear(); AllUser.OpenChildForm(addsrc, panel_list); }
private void _Load() { panel_main.Controls.Clear(); AllUser.OpenChildForm(wlc, panel_main); }