Ejemplo n.º 1
0
 public GeneticProgrammingController(IReferView frmPrincipal, ConfigController configController)
 {
     singleton             = this;
     this.frmPrincipal     = frmPrincipal;
     this.configController = configController;
     gpRunner = new BTGPRunner(configController.config, this);
 }
 public TradeSystemController(IReferView frmPrincipal, ConfigController configController)
 {
     this.frmPrincipal     = frmPrincipal;
     this.configController = configController;
     holder = TradeSystemHolder.LoadSaved();
     vc     = new VariavelController(this, frmPrincipal);
     UpdateUI();
 }
Ejemplo n.º 3
0
 public TerraDrawerMultiThread(Panel panelDraw, IReferView refer, int memorySize)
 {
     drawer          = new TerraDrawer(panelDraw, refer, memorySize);
     actions         = new List <DelayedDraw>();
     actionsRecycled = new List <DelayedDraw>();
     //DrawRect(0, 0, 0, drawer.width, drawer.height);
     AddDelayed("DrawRect", 0, 0, 0, drawer.width, drawer.height);
 }
Ejemplo n.º 4
0
 public FrontController(IReferView frmFront, ConfigController configController)
 {
     this.frmFront         = frmFront;
     this.configController = configController;
     frontData             = FrontData.LoadSaved();
     //precisa ser mesmo dia... o preço será sugerido para comprar
     configController.config.flagCompraMesmoDia = true;
     configController.config.flagVendaMesmoDia  = true;
 }
Ejemplo n.º 5
0
        public TerraDrawer(Panel panelDraw, IReferView refer, int memorySize)
        {
            this.panelDraw = panelDraw;
            this.refer     = refer;

            canvas        = new ShapeContainer();
            canvas.Parent = panelDraw;
            shapes        = new List <Shape>();

            graphicsCanvas = canvas.CreateGraphics();
            this.width     = TierraConsts.GRAPH_OFFSET * 2 + TierraConsts.GRAPH_WIDTH * TierraConsts.GRAPH_SIZE;
            this.height    = TierraConsts.GRAPH_OFFSET * 2 + (memorySize / TierraConsts.GRAPH_WIDTH) * TierraConsts.GRAPH_SIZE;
            img            = new Bitmap(this.width, this.height);
            graphics       = Graphics.FromImage(img);
            this.clip      = new Rectangle(0, 0, this.width, this.height);
        }
Ejemplo n.º 6
0
        public ConfigController(IReferView frmPrincipal)
        {
            this.frmPrincipal = frmPrincipal;
            facade            = new FacadeBacktester();
            facadeValidation  = new FacadeBacktester();
            config            = Config.LoadSaved();

            /*List<string> papeis = new List<string>();
             * foreach (string papel in config.papeis)
             * {
             *  papeis.Add(papel);
             * }
             * config.papeis = papeis;*/
            UpdateUI();
            ReloadPapeis();
        }
Ejemplo n.º 7
0
 public void setRefer(IReferView referView)
 {
     this.referView = referView;
 }
Ejemplo n.º 8
0
 public VariavelController(TradeSystemController tradeSystemController, IReferView frmPrincipal)
 {
     this.tsC          = tradeSystemController;
     this.frmPrincipal = frmPrincipal;
 }
Ejemplo n.º 9
0
 public TierraController(IReferView frmPrincipal, IViewLife drawer)
 {
     this.frmPrincipal = frmPrincipal;
     this.drawer       = drawer;
 }