private void btnDelete_Click(object sender, EventArgs e) { try { if (!vOpenMode) { return; } if (!Message.ConfrmDelMsg()) { return; } objDAL.DeleteRecordBody(Convert.ToInt32(txtVoucherNo.Text), getVoucherType()); objDAL.DeleteRecord(Convert.ToInt32(txtVoucherNo.Text), getVoucherType()); Message.ShowMessage(MyMessages.MessageType.DeleteRecord); SetMode(false); } catch (Exception exc) { MessageBox.Show(exc.Message.ToString(), "Error"); } }
private void btnDelete_Click(object sender, EventArgs e) { try { if (!vOpenMode) { return; } string vMessage = string.Empty; if (!Message.ConfrmDelMsg()) { return; } //Delete Activity objDAL.DeleteRecord(Int64.Parse(txtID.Text)); Message.ShowMessage(MyMessages.MessageType.DeleteRecord); btnClear_Click(sender, e); } catch (Exception exc) { MessageBox.Show(exc.Message.ToString(), "Error"); } }
private void btnDelete_Click(object sender, EventArgs e) { try { if (!vOpenMode) { return; } if (!Message.ConfrmDelMsg()) { return; } objDAL.DeleteRecord(Int64.Parse(txtID.Text)); //Delete Account var AccDAL = new DAL.AccountChart(); AccDAL.connectionstring = objDAL.connectionstring; AccDAL.DeleteRecord(txtID.Tag.ToString()); Message.ShowMessage(MyMessages.MessageType.DeleteRecord); LoadGrid(); btnClear_Click(sender, e); } catch (Exception exc) { Message.ShowMessage(MyMessages.MessageType.Error, exc.Message); } }
private void btnDelete_Click(object sender, EventArgs e) { try { if (!vOpenMode) { return; } if (!Message.ConfrmDelMsg()) { return; } //Delete Account objDAL.DeleteRecord(txtAccountID.Text); Message.ShowMessage(MyMessages.MessageType.DeleteRecord); LoadGrid(); btnClear_Click(sender, e); } catch (Exception exc) { MessageBox.Show(exc.Message.ToString(), "Error"); } }
private void btnDelete_Click(object sender, EventArgs e) { try { if (!vOpenMode) { return; } if (!Message.ConfrmDelMsg()) { return; } objDAL.DeleteRecord(Int64.Parse(txtID.Text)); Message.ShowMessage(MyMessages.MessageType.DeleteRecord); LoadGrid(); btnClear_Click(sender, e); } catch (Exception exc) { Message.ShowMessage(MyMessages.MessageType.Error, exc.Message); } }