private void btnThoat_Click(object sender, System.EventArgs e) { QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider = new QUANLYHOCSINHCAP3.KNCSDL.DataProvider(); //cboKhoi.DataSource=provider.LayDanhSach(strSql); provider.Disconnect(); this.Close(); }
private void btnThoat_Click(object sender, System.EventArgs e) { DialogResult nut; QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider = new QUANLYHOCSINHCAP3.KNCSDL.DataProvider(); if (Kiemtra_Thoat() == 1) { provider.Disconnect(); this.Close(); } else { nut = MessageBox.Show("Bạn có muốn lưu trước khi thoát không ? ", "Thông báo", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information); if (nut == DialogResult.Yes) { if (btnTiepNhan.Enabled == false) { if (btnCapNhat.Enabled == true) { if (kiemtra() == 1) { CapNhat(); provider.Disconnect(); this.Close(); } } } else { if (kiemtra() == 1) { Luu(); provider.Disconnect(); this.Close(); } } } if (nut == DialogResult.No) { provider.Disconnect(); this.Close(); } } }
private void btnThoat_Click(object sender, System.EventArgs e) { QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider=new QUANLYHOCSINHCAP3.KNCSDL.DataProvider(); //cboKhoi.DataSource=provider.LayDanhSach(strSql); provider.Disconnect(); this.Close(); }
private void btnThoat_Click(object sender, System.EventArgs e) { QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider = new QUANLYHOCSINHCAP3.KNCSDL.DataProvider(); provider.Disconnect(); this.Close(); }
private void btnThoat_Click(object sender, System.EventArgs e) { DialogResult nut; QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider=new QUANLYHOCSINHCAP3.KNCSDL.DataProvider(); if(Kiemtra_Thoat()==1) { provider.Disconnect(); this.Close(); } else { nut=MessageBox.Show("Bạn có muốn lưu trước khi thoát không ? ","Thông báo",MessageBoxButtons.YesNoCancel,MessageBoxIcon.Information); if(nut==DialogResult.Yes) { if(btnTiepNhan.Enabled==false) { if(btnCapNhat.Enabled==true) { if(kiemtra()==1) { CapNhat(); provider.Disconnect(); this.Close(); } } } else { if(kiemtra()==1) { Luu(); provider.Disconnect(); this.Close(); } } } if(nut==DialogResult.No) { provider.Disconnect(); this.Close(); } } }
private void btnThoat_Click(object sender, System.EventArgs e) { QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider=new QUANLYHOCSINHCAP3.KNCSDL.DataProvider(); provider.Disconnect(); this.Close(); }