Beispiel #1
0
        private void btSua_Click(object sender, EventArgs e)
        {
            AddSVDialog editDialog = new AddSVDialog();

            editDialog.add_tbMaSinhVien.Text  = tbMaSV.Text;
            editDialog.add_tbHoTen.Text       = tbHoTenSV.Text;
            editDialog.add_tbMaPhong.Text     = tbMaPhong.Text;
            editDialog.add_tbHoKhau.Text      = tbHoKhau.Text;
            editDialog.add_dtpNgaySinh.Value  = DateTime.Parse(tbNgaySinh.Text);
            editDialog.add_dtpNgayDK.Value    = DateTime.Parse(tbNgayDK.Text);
            editDialog.add_tbTrangThai.Text   = tbMaSV.Text;
            editDialog.add_tbGioiTinh.Text    = tbGioiTinh.Text;
            editDialog.add_tbSdt.Text         = tbSdt.Text;
            editDialog.add_tbThoiGianHoc.Text = tbThoiGianHoc.Text;
            editDialog.add_tbTenLop.Text      = tbLop.Text;

            editDialog.add_tbMaSinhVien.ReadOnly = true;
            editDialog.add_btThem.Text           = "Xong";
            editDialog.isEditing = true;
            editDialog.ShowDialog();
        }
Beispiel #2
0
        private void btThem_Click(object sender, EventArgs e)
        {
            AddSVDialog addDialog = new AddSVDialog();

            addDialog.ShowDialog();
        }