Exemple #1
0
        public AutoTextDefinitionsProvider(AutoTextDefinitions definitions)
        {
            _definitions = definitions;

            // Normalize casing
            Array.ForEach(_definitions.Metrics, x => x.Code        = x.Code.ToUpper());
            Array.ForEach(_definitions.Variables, x => x.Code      = x.Code.ToUpper());
            Array.ForEach(_definitions.MacroVariables, x => x.Name = x.Name.ToUpper());
        }
        public AutoTextMain(AutoTextDefinitions definitions, AutoTextData data)
        {
            DefinitionsProvider = new AutoTextDefinitionsProvider(definitions);
            DataProvider        = new AutoTextDataProvider(data);

            // Setup macro variables
            MacroVariables = new MacroVariables();
            MacroVariables.Add(definitions.MacroVariables);

            // Setup direction
            Direction = new Direction(definitions.Synonyms);
        }