public static sysInterestedStrategy GetForm(string formName) { string cacheKey = typeof(sysInterestedStrategy).FullName + (formName != null && formName.Trim() == "" ? "-" + formName.Trim() : ""); sysInterestedStrategy form = (sysInterestedStrategy)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) return form; form = new sysInterestedStrategy(); common.Data.dataCache.Add(cacheKey, form); return form; }
public static sysInterestedStrategy GetForm(string formName) { string cacheKey = typeof(sysInterestedStrategy).FullName + (formName != null && formName.Trim() == "" ? "-" + formName.Trim() : ""); sysInterestedStrategy form = (sysInterestedStrategy)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) { return(form); } form = new sysInterestedStrategy(); common.Data.dataCache.Add(cacheKey, form); return(form); }