private bool DeleteRowManual(ARecurringGiftBatchRow ARowToDelete, ref string ACompletionMessage) { bool DeletionSuccessful = false; if (ARowToDelete == null) { return(false); } //Notify of deletion process TFrmRecurringGiftBatch MainForm = (TFrmRecurringGiftBatch)this.ParentForm; try { MainForm.FCurrentGiftBatchAction = TExtraGiftBatchChecks.GiftBatchAction.DELETING; FDeletedBatchRowIndex = grdDetails.GetFirstHighlightedRowIndex(); DeletionSuccessful = FDeleteLogicObject.DeleteRowManual(ARowToDelete, ref FPreviouslySelectedDetailRow, ref ACompletionMessage); } finally { MainForm.FCurrentGiftBatchAction = TExtraGiftBatchChecks.GiftBatchAction.NONE; } return(DeletionSuccessful); }
private bool DeleteRowManual(ARecurringGiftBatchRow ARowToDelete, ref string ACompletionMessage) { bool RetVal = false; FDeletedBatchRowIndex = grdDetails.GetFirstHighlightedRowIndex(); RetVal = FDeleteLogicObject.DeleteRowManual(ARowToDelete, ref FPreviouslySelectedDetailRow, ref ACompletionMessage); UpdateRecordNumberDisplay(); return(RetVal); }