Пример #1
0
        private async Task <bool> InitTANMedium(FinTsClient client)
        {
            // TAN-Medium-Name
            var accounts = await client.Accounts(_tanDialog);

            if (!accounts.IsSuccess)
            {
                HBCIOutput(accounts.Messages);
                return(false);
            }
            var conn = client.ConnectionDetails;
            AccountInformation accountInfo = UPD.HIUPD?.GetAccountInformations(conn.Account, conn.Blz.ToString());

            if (accountInfo != null && accountInfo.IsSegmentPermitted("HKTAB"))
            {
                client.HITAB = txt_tan_medium.Text;
            }

            return(true);
        }