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

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