Exemple #1
0
        public override bool PerformSelectionAction(DrawArgs drawArgs)
        {
            if (this.ShowOnlyCurrentlySelected)
            {
                return(false);
            }

            lock (this.downloadableIconList.SyncRoot)
            {
                foreach (string key in this.downloadableIconList.Keys)
                {
                    if (this.currentlyDisplayed != null && key == this.currentlyDisplayed.Name)
                    {
                        continue;
                    }
                    DownloadableIcon di = (DownloadableIcon)this.downloadableIconList[key];
                    if (di.WasClicked(drawArgs))
                    {
                        if (this.currentlyDisplayed != null)
                        {
                            this.currentlyDisplayed.LoadImage = false;
                        }
                        di.LoadImage = true;
                        di.PerformSelectionAction(drawArgs);
                        this.currentlyDisplayed = di;
                        return(true);
                    }
                }
            }
            return(false);
        }