public static ImageTraySource CreateInstance(ImageTrayType trayType) { ImageTraySource RetVal=null; switch (trayType) { case ImageTrayType.NormalImages: RetVal = new NormalImagesSource(); break; case ImageTrayType.ImagesNVideo: RetVal = new ImagesNVideosource(); break; default: break; } return RetVal; }
public static ImageTraySource CreateInstance(ImageTrayType trayType) { ImageTraySource RetVal = null; switch (trayType) { case ImageTrayType.NormalImages: RetVal = new NormalImagesSource(); break; case ImageTrayType.ImagesNVideo: RetVal = new ImagesNVideosource(); break; default: break; } return(RetVal); }