Ejemplo n.º 1
0
        public void AddBuildLogic <T>(Dictionary <string, int> logics)
        {
            var faceName = typeof(T).Name;

            if (BuildOrderLogic.ContainsKey(faceName))
            {
                BuildOrderLogic[faceName] = logics.Select(d => new BuildLogic(d.Key, d.Value)).ToList();
            }
            else
            {
                BuildOrderLogic.Add(faceName, logics.Select(d => new BuildLogic(d.Key, d.Value)).ToList());
            }
        }
Ejemplo n.º 2
0
        public void AddBuildLogic <T>(IEnumerable <XFrmWorkAttribute> items)
        {
            var faceName = typeof(T).Name;

            if (BuildOrderLogic.ContainsKey(faceName))
            {
                BuildOrderLogic[faceName] = items.Select(d => new BuildLogic(d.Name)).ToList();
            }
            else
            {
                BuildOrderLogic.Add(faceName, items.Select(d => new BuildLogic(d.Name)).ToList());
            }
        }
Ejemplo n.º 3
0
        public void AddBuildLogic <T>(IEnumerable <BuildLogic> logics)
        {
            var faceName = typeof(T).Name;

            if (BuildOrderLogic.ContainsKey(faceName))
            {
                BuildOrderLogic[faceName] = logics.ToList();
            }
            else
            {
                BuildOrderLogic.Add(faceName, logics.ToList());
            }
        }