private void btThemHocSinh_Click(object sender, EventArgs e) { ThemSuaHocSinh fThemSuaHocSinh = new ThemSuaHocSinh(); // pnBoard.Controls.Clear(); // pnBoard.Controls.Add(fThemSuaHocSinh); fThemSuaHocSinh.ShowDialog(); }
private void btnSuaHS_Click(object sender, EventArgs e) { if (lvdshs.SelectedItems.Count > 0) { ThemSuaHocSinh fThemSua = new ThemSuaHocSinh (tbMaHocSinh_DSHS.Text, tbHoTen_DSHS.Text, tbNgaySinh_DSHS.Text, tbGioiTinh_DSHS.Text, tbEmail_DSHS.Text, tbDiaChi_DSHS.Text); fThemSua.ShowDialog(); } else { MessageBox.Show("Bạn phải chọn 1 học sinh để sửa !", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnThemHocSinh_Click(object sender, EventArgs e) { ThemSuaHocSinh fThemSuaHocSinh = new ThemSuaHocSinh(); fThemSuaHocSinh.ShowDialog(); }