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