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