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