public void Initialize(IEnumerable <Initializer> initializers)
 {
     foreach (Initializer initializer in initializers)
     {
         elementColors.Add(initializer.ElementType, initializer.Color);
     }
     model.Initialize(initializers);
 }
Exemplo n.º 2
0
        private static OrdinalModel OrdinalModel()
        {
            FieldParameters parameters = new FieldParameters()
            {
                Size = 10
            };
            OrdinalModel model = new OrdinalModel(parameters);

            InitializationData data = new InitializationData(typeof(TickerElement))
            {
                Count           = Count,
                InitialazerType = typeof(RandomInitializer)
            };
            Initializer initializer = Initializer.FromInitializationData(data);

            model.Initialize(new[] { initializer });
            return(model);
        }