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