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

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