/// <summary> /// Get existing Back Testing form or create new Form /// </summary> /// <param name="formName"></param> /// <returns></returns> public static backTesting GetForm(string formName) { string cacheKey = typeof(backTesting).FullName + (formName != null && formName.Trim() == "" ? "-" + formName.Trim() : ""); backTesting form = (backTesting)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) { return(form); } form = new Forms.backTesting(); common.Data.dataCache.Add(cacheKey, form); return(form); }
/// <summary> /// Get existing Back Testing form or create new Form /// </summary> /// <param name="formName"></param> /// <returns></returns> public static backTesting GetForm(string formName) { string cacheKey = typeof(backTesting).FullName + (formName != null && formName.Trim() == "" ? "-" + formName.Trim() : ""); backTesting form = (backTesting)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) return form; form = new Forms.backTesting(); common.Data.dataCache.Add(cacheKey, form); return form; }