Forex_Strategy_Builder.Actions.MenuPrevHistory_OnClick C# (CSharp) Method

MenuPrevHistory_OnClick() protected method

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

            return;
        }
Actions