using Aitex.Core.Util; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace MECF.Framework.Common.ToolLayout { public class LayoutCellItemManager : Singleton { /// /// 初始Layout Cell Item /// /// /// public void InitializeLayoutCellItem(LayoutCellItem cellItem, XmlElement xmlElement) { cellItem.Installed = bool.Parse(xmlElement.SelectSingleNode("Installed").InnerText); cellItem.CellID = int.Parse(xmlElement.SelectSingleNode("CellID").InnerText); cellItem.SubType = xmlElement.SelectSingleNode("SubType").InnerText; cellItem.NominalGantryPositionInMilliMeters = int.Parse(xmlElement.SelectSingleNode("NominalGantryPositionInMilliMeters").InnerText); } } }