Пример #1
0
        private static ToolTypeClassList getToolTypeList(XmlNode productparameter, ToolTypeClassList toolTypeClassList)
        {
            ToolTypeClassList toolTypeList = new ToolTypeClassList();
            XmlNodeList       toolTypes    = productparameter.ChildNodes;

            foreach (XmlNode tooType in toolTypes)
            {
                string        toolTypeID = tooType.InnerText;
                ToolTypeClass toolType   = toolTypeClassList.GetToolType(tooType.InnerText);
                toolTypeList.AddToolType(toolType);
            }
            return(toolTypeList);
        }
Пример #2
0
        public static ToolTypeClassList parse(XmlNodeList ToolTypeClassNodeList)
        {
            ToolTypeClassList toolTypeClassList = new ToolTypeClassList();

            foreach (XmlNode toolTypeParameter in ToolTypeClassNodeList)
            {
                ToolTypeClass toolType = new ToolTypeClass();

                XMlToolTypeClassFields XMLToolTypeField = (XMlToolTypeClassFields)Enum.Parse(typeof(XMlToolTypeClassFields), toolTypeParameter.Name, true);

                if (XMLToolTypeField == XMlToolTypeClassFields.ToolTypeBranch)
                {
                    toolType = getToolType(toolTypeParameter);
                }
                toolTypeClassList.AddToolType(toolType);
            }
            return(toolTypeClassList);
        }