Exemplo n.º 1
0
        public static IPictureSL getI(string extention)
        {
            IPictureSL pictureLS;

            switch (extention)
            {
            case "jpg":
                pictureLS = new BitmapFile();
                break;

            case "gif":
                pictureLS = new BitmapFile();
                break;

            case "ico":
                pictureLS = new BitmapFile();
                break;

            case "png":
                pictureLS = new BitmapFile();
                break;

            case "tif":
                pictureLS = new BitmapFile();
                break;

            case "exif":
                pictureLS = new BitmapFile();
                break;

            case "pdf":
                pictureLS = new PDFFile();
                break;

            case "2":
                pictureLS = new New2File();
                break;

            case "3":
                pictureLS = new New3File();
                break;

            default:
                pictureLS = new BitmapFile();
                break;
            }
            return(pictureLS);
        }
Exemplo n.º 2
0
 public static IPictureSL getI(string extention)
 {
     IPictureSL pictureLS;
     switch (extention)
     {
         case "jpg":
             pictureLS = new BitmapFile();
             break;
         case "gif":
             pictureLS = new BitmapFile();
             break;
         case "ico":
             pictureLS = new BitmapFile();
             break;
         case "png":
             pictureLS = new BitmapFile();
             break;
         case "tif":
             pictureLS = new BitmapFile();
             break;
         case "exif":
             pictureLS = new BitmapFile();
             break;
         case "pdf":
             pictureLS = new PDFFile();
             break;
         case "2":
             pictureLS = new New2File();
             break;
         case "3":
             pictureLS = new New3File();
             break;
         default:
             pictureLS = new BitmapFile();
             break;
     }
     return pictureLS;
 }