예제 #1
0
        private void KetQuaThi_Load(object sender, EventArgs e)
        {
            ThongTinThiSinh ts = new ThongTinThiSinh(Program.SBD);

            int KQ       = SoCauDung();
            int CauDaLam = 30 - SoCauChuaLam();

            lb_hovaten.Text  = ts.ho + " " + ts.ten;
            lb_gioiTinh.Text = ts.gioiTinh;
            if (KQ >= 26)
            {
                lb_ketqua.Text = "Đậu";
            }
            else
            {
                lb_ketqua.Text = "Rớt";
            }

            lb_socaudung.Text = KQ.ToString();
            lb_QuocTich.Text  = ts.quoctich;
            lb_ngaysinh.Text  = ts.ngaysinh;
            lb_diaChi.Text    = ts.diachi;
            lb_sCauDaLam.Text = CauDaLam.ToString();
            String filepath = @"imagets\" + ts.hinhanh;

            pictureBox1.Image = Image.FromFile(filepath.ToString());
        }
예제 #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            ThongTinThiSinh ts = new ThongTinThiSinh();

            if (ts.Xoathisinh(txt_sbd.Text))
            {
                pic_del.Image = Image.FromFile(@"system picture\complete.png");
            }
            else
            {
                pic_del.Image = Image.FromFile(@"system picture\fail.png");
            }
            pic_del.Show();
            load_thisinh();
        }
예제 #3
0
        private void XacNhan_Load(object sender, EventArgs e)
        {
            ThongTinThiSinh ts = new ThongTinThiSinh(Program.SBD);



            lb_hovaten.Text  = ts.ho + " " + ts.ten;
            lb_gioiTinh.Text = ts.gioiTinh;

            lb_QuocTich.Text = ts.quoctich;
            lb_ngaysinh.Text = ts.ngaysinh;
            lb_diaChi.Text   = ts.diachi;
            string filepath = @"imagets\" + ts.hinhanh;

            pictureBox1.Image = Image.FromFile(filepath.ToString());
        }
예제 #4
0
        private void click_them(object sender, EventArgs e)
        {
            String namepic = openpic.SafeFileName;

            if (namepic.Equals("openFileDialog1"))
            {
                namepic = "avatar.png";
            }
            ThongTinThiSinh ts = new ThongTinThiSinh();

            if (ts.themthisinh(txt_sbd.Text, txt_Ho.Text, txt_ten.Text, datebirth.Text, rbtn_nam.Checked, txt_quoctich.Text, rtxtdiachi.Text, namepic, txtcmnd.Text))
            {
                pic_add.Image = Image.FromFile(@"system picture\complete.png");
            }
            else
            {
                pic_add.Image = Image.FromFile(@"system picture\fail.png");
            }
            pic_add.Show();
            load_thisinh();
        }