コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }