Example #1
0
 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;
 }
Example #2
0
        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);
        }