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