예제 #1
0
        private void btThemHocSinh_Click(object sender, EventArgs e)
        {
            ThemSuaHocSinh fThemSuaHocSinh = new ThemSuaHocSinh();

            // pnBoard.Controls.Clear();
            // pnBoard.Controls.Add(fThemSuaHocSinh);
            fThemSuaHocSinh.ShowDialog();
        }
예제 #2
0
 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);
     }
 }
예제 #3
0
        private void btnThemHocSinh_Click(object sender, EventArgs e)
        {
            ThemSuaHocSinh fThemSuaHocSinh = new ThemSuaHocSinh();

            fThemSuaHocSinh.ShowDialog();
        }