public virtual void UpdateUI()
 {
     UpdateUI(selectedTS);
     frmPrincipal.ClearList("listTradeSystems");
     frmPrincipal.ClearList("cbTradeSystem");
     for (int i = 0; i < holder.Count; i++)
     {
         frmPrincipal.AddItem("listTradeSystems", holder.GetTS(i));
         frmPrincipal.AddItem("cbTradeSystem", holder.GetTS(i));
     }
     frmPrincipal.SetEnabled("btnRun", holder.Count > 0);
 }
Esempio n. 2
0
        private void LoadCandidatos()
        {
            string path = System.AppDomain.CurrentDomain.BaseDirectory;

            path             = path.Replace("FrontTester.frontend", "Backtester");
            candidatoManager = CandidatoManager.LoadSaved(configController.config.tipoPeriodo, path);
            for (int i = 0; i < candidatoManager.ranking.Count; i++)
            {
                CandidatoData data = candidatoManager.ranking[i];
                frmFront.AddItem("cbTradeSystem", data);
                frmFront.AddItem("cbTradeSystemEmUso", data);
            }
        }
        private void UpdateList()
        {
            frmPrincipal.ClearList("listTSVars");
            TradeSystem ts = tsC.tradeSystem;

            if (ts != null)
            {
                foreach (Variavel v in ts.vm.variaveis)
                {
                    frmPrincipal.AddItem("listTSVars", v);
                }
            }
        }