Exemple #1
0
        public void LoadDownloadableIcon(string name)
        {
            DownloadableIcon di = null;

            lock (this.downloadableIconList.SyncRoot)
            {
                if (this.downloadableIconList.Contains(name))
                {
                    di = (DownloadableIcon)this.downloadableIconList[name];
                }
            }
            if (di != null)
            {
                if (this.currentlyDisplayed != null)
                {
                    this.currentlyDisplayed.Dispose();
                }

                di.DownLoadImage(drawArgs);
                this.currentlyDisplayed = di;
            }
        }