Esempio n. 1
0
        public void DownloadAsync(string unmanagedID, object userArgs)
        {
            if (unmanagedID == string.Empty)
            {
                throw new ArgumentNullException("unmanagedID", "The passed ID is empty.");
            }
            ChartDownloadSettings settings = (ChartDownloadSettings)this.Settings.Clone();

            settings.ID = unmanagedID;
            base.DownloadAsync(settings, userArgs);
        }
        /// <summary>
        /// Downloads a chart image.
        /// </summary>
        /// <param name="unmanagedID">The unmanaged ID of the stock</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public Base.Response <ChartResult> Download(string unmanagedID)
        {
            if (unmanagedID == string.Empty)
            {
                throw new ArgumentNullException("unmanagedID", "The passed ID is empty.");
            }
            ChartDownloadSettings settings = (ChartDownloadSettings)this.Settings.Clone();

            settings.ID = unmanagedID;
            return(this.Download(settings));
        }
Esempio n. 3
0
        public override object Clone()
        {
            ChartDownloadSettings cln = new ChartDownloadSettings();

            cln.ID = this.ID;
            cln.SimplifiedImage = this.SimplifiedImage;
            cln.ImageWidth      = this.ImageWidth;
            cln.ImageHeight     = this.ImageHeight;
            cln.ImageSize       = this.ImageSize;
            cln.TimeSpan        = this.TimeSpan;
            cln.Type            = this.Type;
            cln.Scale           = this.Scale;
            cln.Culture         = this.Culture;
            cln.MovingAverages.AddRange((MovingAverageInterval[])this.MovingAverages.ToArray().Clone());
            cln.ExponentialMovingAverages.AddRange((MovingAverageInterval[])this.ExponentialMovingAverages.ToArray().Clone());
            cln.TechnicalIndicators.AddRange((TechnicalIndicator[])this.TechnicalIndicators.ToArray().Clone());
            cln.ComparingIDs.AddRange((string[])this.ComparingIDs.ToArray().Clone());
            return(cln);
        }
Esempio n. 4
0
 /// <summary>
 /// Starts an asynchronous download of an chart image.
 /// </summary>
 /// <param name="settings"></param>
 /// <param name="userArgs">Individual user argument</param>
 public void DownloadAsync(ChartDownloadSettings settings, object userArgs)
 {
     base.DownloadAsync(settings, userArgs);
 }
Esempio n. 5
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <remarks></remarks>
 public ChartDownload()
 {
     this.Settings = new ChartDownloadSettings();
 }
 public Base.Response <ChartResult> Download(ChartDownloadSettings settings)
 {
     return(base.Download(settings));
 }