public Response <PortfolioInfoResult> DownloadPortfolioInfo()
 {
     if (this.IsLoggedIn)
     {
         PortfolioInfoDownload dl = new PortfolioInfoDownload();
         dl.Settings.Account = this;
         return(dl.Download());
     }
     else
     {
         throw new NotSupportedException("The user is not logged in.");
     }
 }
Esempio n. 2
0
 public void DownloadPortfolioInfoAsync(object userArgs)
 {
     if (this.IsLoggedIn)
     {
         PortfolioInfoDownload dl = new PortfolioInfoDownload();
         dl.Settings.Account        = this;
         dl.AsyncDownloadCompleted += this.PortfolioInfoDownload_Completed;
         dl.DownloadAsync(userArgs);
     }
     else
     {
         throw new NotSupportedException("The user is not logged in.");
     }
 }