コード例 #1
0
ファイル: FrmTraCuu.cs プロジェクト: kieungocdung/idgwebdn
 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();
 }
コード例 #2
0
        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();
                }
            }
        }
コード例 #3
0
ファイル: FrmTraCuu.cs プロジェクト: kieungocdung/idgwebdn
		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();
		}
コード例 #4
0
 private void btnThoat_Click(object sender, System.EventArgs e)
 {
     QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider = new QUANLYHOCSINHCAP3.KNCSDL.DataProvider();
     provider.Disconnect();
     this.Close();
 }
コード例 #5
0
		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();
					}
			}
		}
コード例 #6
0
		private void btnThoat_Click(object sender, System.EventArgs e)
		{
			QUANLYHOCSINHCAP3.KNCSDL.DataProvider provider=new QUANLYHOCSINHCAP3.KNCSDL.DataProvider();
			provider.Disconnect();			
			this.Close();
		}