예제 #1
0
        static public iDS Get(string type)
        {          
            if (ds == null)
            {
                Init();
            }
            foreach (var dss in ds)
            {
                res = dss.Get(type);
                if (res != null)
                {
                    ress = res;
                }
            }
            return ress;

            //switch (type)
            //{
            //    case "pdf":
            //        return new DS_PDF();
            //    case "raw":
            //        return new DS_RAW();
            //    case "psd":
            //        return new DS_PSD();
            //    case "png":
            //    case "bmp":
            //    case "jpg":
            //    default:
            //        return new DS_Standard();
            //}
        }
예제 #2
0
 iDS iDS.Get(string fileName)
 {
     if (fileName == ".psd")
     {
         res = new DS_Standard();
     }
     else
     {
         res = null;
     }
     return null;
 }
예제 #3
0
 iDS iDS.Get(string fileName)
 {
     for (int i = 0; i < arrType.Length; i++)
     {
         if (fileName == arrType[i])
         {
             ress = new DS_Standard();
         }
         else
             res = null;
     }
     res = ress;
     return ress;
 }
예제 #4
0
 static void Add(iDS ds)
  {
      ds.Next = current;
      current = ds;
  }