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