public static AppBuilderContainer FindMemery(string AppID) { if (Memery.ContainsKey(AppID)) { return(Memery[AppID]); } lock (objLockMemery) { if (!Memery.ContainsKey(AppID)) { Memery[AppID] = new AppBuilderContainer(AppID, EnumSaveType.Memery); } return(Memery[AppID]); } }
public static AppBuilderContainer FindHard(string AppID) { if (HardDisk.ContainsKey(AppID)) { return(HardDisk[AppID]); } lock (objLockHard) { if (!HardDisk.ContainsKey(AppID)) { HardDisk[AppID] = new AppBuilderContainer(AppID, EnumSaveType.HardDisk); } return(HardDisk[AppID]); } }