Пример #1
0
 public static transactionList GetForm(string formName)
 {
     string cacheKey = typeof(transactionList).FullName + (formName == null || formName.Trim()==""? "" : "-" + formName);
     transactionList form = (transactionList)common.Data.dataCache.Find(cacheKey);
     if (form != null && !form.IsDisposed) return form;
     form = new transactionList();
     common.Data.dataCache.Add(cacheKey, form);
     return form;
 }
Пример #2
0
        public static transactionList GetForm(string formName)
        {
            string          cacheKey = typeof(transactionList).FullName + (formName == null || formName.Trim() == ""? "" : "-" + formName);
            transactionList form     = (transactionList)common.Data.dataCache.Find(cacheKey);

            if (form != null && !form.IsDisposed)
            {
                return(form);
            }
            form = new transactionList();
            common.Data.dataCache.Add(cacheKey, form);
            return(form);
        }