Example #1
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);
            }
        }