private void btndelete_Click(object sender, EventArgs e) { bmb.RemoveAt(bmb.Position); bmb.EndCurrentEdit(); cmdbd = new SqlCommandBuilder(da); da.Update(dt); MessageBox.Show("تمت عمليه الحذف", "عمليه الحذف", MessageBoxButtons.OK, MessageBoxIcon.Information); btnadd.Enabled = false; btnnew.Enabled = true; label3.Text = (bmb.Position + 1) + "/" + bmb.Count; }
private void deleteCAt_Click(object sender, EventArgs e) { if (MessageBox.Show("هل تريد الحذف؟", "حذف", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK) { try { // we use functions bmb.RemoveAt(bmb.Position); bmb.EndCurrentEdit(); comdb = new SqlCommandBuilder(da); //updating dt da.Update(dt); MessageBox.Show( "تمت الحذف بنجاح", "عملية الحذف", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show( ex.ToString(), "عملية الإضافة", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { MessageBox.Show("تم الغاء الحذف", "عملية الحذف", MessageBoxButtons.OK, MessageBoxIcon.Hand); return; } addCat.Enabled = false; newCat.Enabled = true; labelPosition.Text = (bmb.Position + 1) + " / " + bmb.Count; }
private void btnSupprimer_Click(object sender, EventArgs e) { DvCompte = new DataView(Ds_Banque.Tables["Comptes"], "Num_Compte=" + comboNumCompte.SelectedValue, "", DataViewRowState.CurrentRows); if (comboTypeMouvement.Text == "Dépôt" && Convert.ToDecimal(DvCompte[0]["Solde"]) <= Convert.ToDecimal(textMontant.Text)) { MessageBox.Show("Solde inssuffissant"); } else { try { DvCompte[0].BeginEdit(); if (comboTypeMouvement.Text == "Retrait") { DvCompte[0]["Solde"] = Convert.ToDecimal(DvCompte[0]["Solde"]) + Convert.ToDecimal(textMontant.Text); } else { DvCompte[0]["Solde"] = Convert.ToDecimal(DvCompte[0]["Solde"]) - Convert.ToDecimal(textMontant.Text); } DvCompte[0].EndEdit(); bmbMouvement.RemoveAt(bmbMouvement.Position); BL = true; MessageBox.Show("Mouvement supprimé", "Suppression Mouvement", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
private void btnSupprimer_Click(object sender, EventArgs e) { if (soldeCrediteur < Convert.ToDecimal(textMontantVirement.Text)) { MessageBox.Show("Solde inssuffissant"); } else { try { Dv_Compte[0].BeginEdit(); Dv_Compte[0]["Solde"] = soldeDebiteur + Convert.ToDecimal(textMontantVirement.Text); Dv_Compte[0].EndEdit(); Dv_Compte = new DataView(Ds_Banque.Tables["Comptes"], "Num_Compte =" + comboCrediteur.SelectedValue, "", DataViewRowState.CurrentRows); soldeCrediteur = Convert.ToDecimal(Dv_Compte[0]["Solde"]); Dv_Compte[0].BeginEdit(); Dv_Compte[0]["Solde"] = soldeCrediteur - Convert.ToDecimal(textMontantVirement.Text); Dv_Compte[0].EndEdit(); bmbVirement.RemoveAt(bmbVirement.Position); BL = true; MessageBox.Show("Virement supprimé", "Suppression Virement", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
//Event DeleteDB private void btnDeleteDB_Click(object sender, EventArgs e) { try { //Xoa CTDB theo SoPhieu var rows = tblCTDATBAO.Select("SoPhieu ='" + txtSoPhieu.Text + "'"); foreach (DataRow r in rows) { r.Delete(); } daCTDB.Update(tblCTDATBAO); tblCTDATBAO.AcceptChanges(); //Xoa PDB bindPDB.RemoveAt(bindPDB.Position); daPDB.Update(tblPHIEUDATBAO); tblPHIEUDATBAO.AcceptChanges(); MessageBox.Show("Xóa thành công!!!"); } catch (SqlException ex) { tblCTDATBAO.RejectChanges(); tblPHIEUDATBAO.RejectChanges(); MessageBox.Show(ex.ToString()); } }
private void btnSupprimer_Click(object sender, EventArgs e) { bmbCompte.RemoveAt(bmbCompte.Position); BL = true; MessageBox.Show("Compte supprimé", "Suppression Compte", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void button12_Click(object sender, EventArgs e) { managerBase2.RemoveAt(managerBase2.Position); builder = new MySqlCommandBuilder(adapter); adapter.Update(table2); MessageBox.Show("Reward Head Deleted", "Removed Head", MessageBoxButtons.OK, MessageBoxIcon.Information); }
// Remove Category private void BtnRemove_Click(object sender, EventArgs e) { bmb.RemoveAt(bmb.Position); cmdb = new SqlCommandBuilder(adapter); adapter.Update(dt); MessageBox.Show("Vous avez suprimé votre catégorie avec succés", "Suprimer", MessageBoxButtons.OK, MessageBoxIcon.Information); label3.Text = bmb.Position + 1 + "/" + bmb.Count; }
private void bt_Xoa_Click(object sender, EventArgs e) { DS_BANDOC.RemoveAt(DS_BANDOC.Position); if (!Bang_BANDOC.Ghi()) { MessageBox.Show("Xóa thất bại!"); } }
private void btnHuy_Click(object sender, EventArgs e) { DS_SACH.RemoveAt(DS_SACH.Position); if (!Bang_SACH.Ghi()) { MessageBox.Show("Xóa Thất Bại!!!"); } }
private void btnXoa_Click(object sender, EventArgs e) { DSSV.RemoveAt(DSSV.Position); if (!tblSinhVien.GhiBang()) { MessageBox.Show("Xóa thất bại!"); } }
private void btnXoa_Click(object sender, EventArgs e) { DSSV.RemoveAt(DSSV.Position); if (!Bang_SINHVIEN.Ghi()) { MessageBox.Show("Xóa thất bại!"); } }
private void btXoa_Click(object sender, EventArgs e) { DSSV.RemoveAt(DSSV.Position); if (!Bang_SinhVien.Ghi()) { MessageBox.Show("Failed"); } }
private void button3_Click(object sender, EventArgs e) { sanpham.RemoveAt(sanpham.Position); if (banglsp.ghi() == true) { MessageBox.Show("Xóa thành công"); } }
private void btnDelete_Click(object sender, EventArgs e) { DS.RemoveAt(DS.Position); if (!tblSanPham.ghi()) { MessageBox.Show("Xóa thất bại!!!"); } }
private void btnDeleteCate_Click(object sender, EventArgs e) { bmb.RemoveAt(bmb.Position); bmb.EndCurrentEdit(); cmdb = new SqlCommandBuilder(da); da.Update(dt); MessageBox.Show("Done Deleting..", "Delete", MessageBoxButtons.OK, MessageBoxIcon.Information); lblPosition.Text = (bmb.Position + 1) + " / " + (bmb.Count); }
private void btxoa_Click(object sender, EventArgs e) { nhanvien.RemoveAt(nhanvien.Position); tbnhanvien.ghi(); if (tbnhanvien.ghi()) { MessageBox.Show("Xóa thành công"); } }
private void btnXoa_Click(object sender, EventArgs e) { int index = bindKH.Position; if (index >= 0) { bindKH.RemoveAt(index); } }
private void btnDel_Click(object sender, EventArgs e) { bmb.RemoveAt(bmb.Position); bmb.EndCurrentEdit(); builder = new SqlCommandBuilder(da); da.Update(dt); MessageBox.Show("succsfully ", "Deleting Opration", MessageBoxButtons.OK, MessageBoxIcon.Information); label3.Text = (bmb.Position + 1) + " / " + bmb.Count; }
private void btnSupprimer_Click(object sender, EventArgs e) { bmb.RemoveAt(bmb.Position); bmb.EndCurrentEdit(); cmdb = new SqlCommandBuilder(da); da.Update(dt); lPosition.Text = (bmb.Position + 1) + " / " + bmb.Count; MessageBox.Show("la filière a été supprimé avec succès ", "Bien", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void btexit1_Click(object sender, EventArgs e) { int index = CTDB.Position; if (index >= 0) { CTDB.RemoveAt(index); } }
private void btnDelete_Click(object sender, EventArgs e) { bmb.RemoveAt(bmb.Position); bmb.EndCurrentEdit(); cmbd = new SqlCommandBuilder(da); da.Update(dt); MessageBox.Show("تم الحذف بنجاح", "حذف", MessageBoxButtons.OK, MessageBoxIcon.Information); lblPosition.Text = (bmb.Position + 1) + "/" + bmb.Count;// }
private void btnDelete_Click(object sender, EventArgs e) { DialogResult result = XtraMessageBox.Show("Bạn có muốn xóa tài khoản này?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result == DialogResult.Yes) { listCustomerAccount.RemoveAt(listCustomerAccount.Position); db.SubmitChanges(); } }
private void button8_Click(object sender, EventArgs e) { bmp.RemoveAt(bmp.Position); bmp.EndCurrentEdit(); cmdb = new SqlCommandBuilder(Da); Da.Update(Dt); MessageBox.Show("تم حذف الصنف بالنجاح", "حذف", MessageBoxButtons.OK, MessageBoxIcon.Information); labelposetion.Text = (bmp.Position + 1) + " / " + bmp.Count; }
private void button7_Click(object sender, EventArgs e) { bm.RemoveAt(bm.Position); bm.EndCurrentEdit(); cmd = new SqlCommandBuilder(da); da.Update(dt); MessageBox.Show("Deleted Succesffuly", "Delete Operation", MessageBoxButtons.OK, MessageBoxIcon.Information); labelpos.Text = (bm.Position + 1) + " / " + bm.Count; }
private void btnDelete_Click(object sender, EventArgs e) { DialogResult result = XtraMessageBox.Show("Bạn có muốn xóa?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result == DialogResult.Yes) { listProductCategory.RemoveAt(listProductCategory.Position); db.SubmitChanges(); } }
private void btn_Delete_Click(object sender, EventArgs e) { BMB.RemoveAt(BMB.Position); CB = new SqlCommandBuilder(DA); DA.Update(DT); MessageBox.Show("Deleteed Successfully", "Delete", MessageBoxButtons.OK, MessageBoxIcon.Information); lbl_Position.Text = (BMB.Position + 1) + " / " + BMB.Count; }
private void btnDel_Click(object sender, EventArgs e) { bmb.RemoveAt(bmb.Position); bmb.EndCurrentEdit(); cmdB = new SqlCommandBuilder(DA); DA.Update(dt); MessageBox.Show("Deleted Successfully !", "Delete", MessageBoxButtons.OK, MessageBoxIcon.Information); //btnAdd.Enabled = false; //btnNew.Enabled = true; lblPosition.Text = (bmb.Position + 1) + " / " + bmb.Count; }
private void btnDelete_Click(object sender, EventArgs e) { if (MessageBox.Show("are you suregg", "delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { bmb.RemoveAt(bmb.Position); cmbd = new SqlCommandBuilder(da); da.Update(dt); MessageBox.Show("delete successfully", "delete", MessageBoxButtons.OK, MessageBoxIcon.Information); lblposition.Text = (bmb.Position + 1) + "/" + bmb.Count; } }
private void rbtn_Xoa_Click(object sender, EventArgs e) { try { DSSV.RemoveAt(DSSV.Position); db.SubmitChanges(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }