Example #1
0
        private void Rows_ItemDeleted(object sender, SoaRowVM e)
        {
            if (!AppArgs.CanDeleteBankTransaction(true))
            {
                goto Reload;
            }
            if (e.DTO.DocRefType != typeof(TransactionCrudVM).FullName)
            {
                goto Reload;
            }

            _repo1.DeleteAndUpdateBalances(e.DTO);

Reload:
            ReloadFromDB();
        }
Example #2
0
        private void Rows_ItemOpened(object sender, SoaRowVM e)
        {
            if (!AppArgs.CanEditBankTransaction(true))
            {
                return;
            }

            var typ = e.DTO.DocRefType;

            if (typ == typeof(TransactionCrudVM).FullName)
            {
                Crud.EditCurrentRecord(e.DTO);
            }
            else if (typ == typeof(RequestedChequeDTO).FullName)
            {
                EditClearedDate(e.DTO);
            }
        }