Ejemplo n.º 1
0
        public static bool GetAllAccounts(ref List <TAccountInfo> listAccountsInfo)
        {
            bool flag;

            try
            {
                ListAccountsInfo.Clear();
                EnumAccountsCallback callback = new EnumAccountsCallback(AddAccount);
                if (GetAllAccounts(callback))
                {
                    LastMsg          = "The request GetAllAccounts is successful";
                    listAccountsInfo = ListAccountsInfo;
                    return(true);
                }
                LastMsg = GetError();
                flag    = false;
            }
            catch (Exception exception1)
            {
                LastMsg = exception1.ToString();
                flag    = false;
            }
            return(flag);
        }
Ejemplo n.º 2
0
 private static extern bool GetAllAccounts(EnumAccountsCallback callback);