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(); }
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); } }