コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Libs.cs プロジェクト: oghenez/trade-software
 public static void AddStockToWatchList(StringCollection stockCodes)
 {
     Forms.addToWatchList_StockOnly myForm = Forms.addToWatchList_StockOnly.GetForm("");
     myForm.ShowForm(stockCodes);
 }