Esempio n. 1
0
        private void PostDeleteManual(ARecurringGiftBatchRow ARowToDelete,
                                      bool AAllowDeletion,
                                      bool ADeletionPerformed,
                                      string ACompletionMessage)
        {
            FDeleteLogicObject.PostDeleteManual(ARowToDelete,
                                                AAllowDeletion,
                                                ADeletionPerformed,
                                                ACompletionMessage);

            if (ADeletionPerformed)
            {
                //Reset row to fire events
                SelectRowInGrid(FDeletedBatchRowIndex);
                UpdateRecordNumberDisplay();

                //If no row exists in current view after cancellation
                if (grdDetails.Rows.Count < 2)
                {
                    UpdateChangeableStatus();
                }

                //                ((TFrmRecurringGiftBatch)ParentForm).EnableTransactions((grdDetails.Rows.Count > 1));
                //SelectRowInGrid(FDeletedBatchRowIndex > 0 ? FDeletedBatchRowIndex : 1);
            }
        }
Esempio n. 2
0
        private void PostDeleteManual(ARecurringGiftBatchRow ARowToDelete,
                                      bool AAllowDeletion,
                                      bool ADeletionPerformed,
                                      string ACompletionMessage)
        {
            FDeleteLogicObject.PostDeleteManual(ARowToDelete,
                                                AAllowDeletion,
                                                ADeletionPerformed,
                                                ACompletionMessage);

            if (ADeletionPerformed)
            {
                UpdateChangeableStatus();

                ((TFrmRecurringGiftBatch)ParentForm).EnableTransactions((grdDetails.Rows.Count > 1));

                SelectRowInGrid(FDeletedBatchRowIndex > 0 ? FDeletedBatchRowIndex : 1);
            }
        }