Forex_Strategy_Builder.Actions.MenuNextHistory_OnClick C# (CSharp) Method

MenuNextHistory_OnClick() protected method

Loads the next generated strategy
protected MenuNextHistory_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected override void MenuNextHistory_OnClick(object sender, EventArgs e)
        {
            if (Data.GeneratorHistory.Count > 0 && Data.GenHistoryIndex < Data.GeneratorHistory.Count - 1)
            {
                Data.GenHistoryIndex++;
                Data.Strategy = Data.GeneratorHistory[Data.GenHistoryIndex].Clone();
                RebuildStrategyLayout();
                Calculate(true);
            }

            return;
        }
Actions