public ImageView(string imagefile) { InitializeComponent(); ImgList = ListOfType.GetInstance(); ImageFile = imagefile; img = new WorkTypeFiles(imagefile,ImgList.TypeImage()); }
public static ListOfType GetInstance() { if (typeList == null) { lock (typeof(ListOfType)) { if (typeList == null) typeList = new ListOfType(); } } return typeList; }