public static addToWatchList_StockOnly GetForm(string formName) { string cacheKey = typeof(addToWatchList_StockOnly).FullName + (formName == null || formName.Trim() == "" ? "" : "-" + formName); addToWatchList_StockOnly form = (addToWatchList_StockOnly)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) return form; form = new addToWatchList_StockOnly(); common.Data.dataCache.Add(cacheKey, form); return form; }
public static addToWatchList_StockOnly GetForm(string formName) { string cacheKey = typeof(addToWatchList_StockOnly).FullName + (formName == null || formName.Trim() == "" ? "" : "-" + formName); addToWatchList_StockOnly form = (addToWatchList_StockOnly)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) { return(form); } form = new addToWatchList_StockOnly(); common.Data.dataCache.Add(cacheKey, form); return(form); }
public static void AddStockToWatchList(StringCollection stockCodes) { Forms.addToWatchList_StockOnly myForm = Forms.addToWatchList_StockOnly.GetForm(""); myForm.ShowForm(stockCodes); }