Esempio n. 1
0
 protected void ShowTradeTransactions(data.tmpDS.stockCodeRow stockCodeRow, string strategyCode,
                                      AppTypes.TimeRanges timeRange,AppTypes.TimeScale timeScale)
 {
     string formName = stockCodeRow.code.Trim() + "," + timeRange.ToString() + "," + application.Strategy.Libs.GetMetaName(strategyCode) + "," + timeScale.Code;
     profitEstimate myForm = profitEstimate.GetForm(formName);
     myForm.myTimeRange = timeRange;
     myForm.myTimeScale = timeScale;
     myForm.myStockCode = stockCodeRow.code;
     myForm.myOptions = new EstimateOptions();
     myForm.myStrategyCode = strategyCode;
     myForm.ReLoad();
     myForm.Text = "(" + formName + ")";
     if (this.myDockedPane != null) myForm.Show(this.myDockedPane);
     else myForm.ShowDialog();
 }
Esempio n. 2
0
 private static string MakeCacheKey(AppTypes.TimeRanges timeRange, string timeScaleCode, string code)
 {
     return "data" + "-" + code + "-" + timeRange.ToString() + "-" + timeScaleCode;
 }