Ejemplo n.º 1
0
 public static stockRanking GetForm(string formName)
 {
     string cacheKey = typeof(stockRanking).FullName + (formName != null && formName.Trim() == "" ? "-" + formName.Trim() : "");
     stockRanking form = (stockRanking)common.Data.dataCache.Find(cacheKey);
     if (form != null && !form.IsDisposed) return form;
     form = new Forms.stockRanking();
     common.Data.dataCache.Add(cacheKey, form);
     return form;
 }
Ejemplo n.º 2
0
        public static stockRanking GetForm(string formName)
        {
            string       cacheKey = typeof(stockRanking).FullName + (formName != null && formName.Trim() == "" ? "-" + formName.Trim() : "");
            stockRanking form     = (stockRanking)common.Data.dataCache.Find(cacheKey);

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