Forex_Strategy_Builder.Strategy_Layout.RepaintStrategyControls C# (CSharp) Method

RepaintStrategyControls() public method

Repaints the strategy slots
public RepaintStrategyControls ( Strategy strategy ) : void
strategy Strategy The strategy
return void
        public void RepaintStrategyControls(Strategy strategy)
        {
            this.strategy = strategy;
            slots = strategy.Slots;
            foreach (Panel pnl in apnlSlot)
                pnl.Invalidate();
            pnlProperties.Invalidate();
        }

Usage Example

 /// <summary>
 /// Repaint the strategy slots without changing its kind and count
 /// </summary>
 protected void RepaintStrategyLayout()
 {
     strategyLayout.RepaintStrategyControls(Data.Strategy.Clone());
 }