Forex_Strategy_Builder.Dialogs.Generator.Generator.AddStrategyToGeneratorHistory C# (CSharp) Method

AddStrategyToGeneratorHistory() private method

Saves the Generator History
private AddStrategyToGeneratorHistory ( string description ) : void
description string
return void
        void AddStrategyToGeneratorHistory(string description)
        {
            Strategy strategy = ClearStrategySlotsStatus(strategyBest);
            Data.GeneratorHistory.Add(strategy);
            Data.GeneratorHistory[Data.GeneratorHistory.Count - 1].Description = description;

            if (Data.GeneratorHistory.Count >= 110)
                Data.GeneratorHistory.RemoveRange(0, 10);

            Data.GenHistoryIndex = Data.GeneratorHistory.Count - 1;
        }