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(); //} }
iDS iDS.Get(string fileName) { if (fileName == ".psd") { res = new DS_Standard(); } else { res = null; } return null; }
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; }
static void Add(iDS ds) { ds.Next = current; current = ds; }