using Remontor.Words; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Remontor.Picter { internal static class SPicManager { private static Dictionary PicList = new Dictionary(); public static void PictureSet(PictureBox image, IComp comp) { IComp Comp = WordsList.FindCompName(comp.GetNetName()); if(Comp != null) { // image = comp.GetImage(); return; } else { comp.SetName("titov"); if (comp.GetName() != null) { if (PicList.ContainsKey(comp.GetName())) { image.Image = PicList[comp.GetName()].ImageGet; } else { new PicLoaderTask(comp.GetName(), image); } } } } } }