Ejemplo n.º 1
0
        public void Parsing(System.Xml.Linq.XElement xml)
        {
            if (xml.Element("Steps") != null)
            {
                foreach (var item in xml.Element("Steps").Elements())
                {
                    var step = new FABandingPosMoveStep();
                    step.Parsing(item);
                    Steps.Add(step);
                }
            }

            if (xml.Element("UseVerticalBanding") != null)
            {
                bool result;
                if (bool.TryParse(xml.Element("UseVerticalBanding").Value, out result) == true)
                {
                    UseVerticalBanding = result;
                }
                else
                {
                    Manager.LogManager.Instance.WriteSystemLog(string.Format("UseVerticalBanding Parsing Fail. XML Element = {0}", xml.Element("UseVerticalBanding")));
                    UseVerticalBanding = false;
                }
            }

            if (xml.Element("ImageSensorProgramNo") != null)
            {
                byte result;
                if (byte.TryParse(xml.Element("ImageSensorProgramNo").Value, out result) == true)
                {
                    ImageSensorProgramNo = result;
                }
                else
                {
                    Manager.LogManager.Instance.WriteSystemLog(string.Format("ImageSensorProgramNo Parsing Fail. XML Element = {0}", xml.Element("ImageSensorProgramNo")));
                    ImageSensorProgramNo = 0;
                }
            }
        }
Ejemplo n.º 2
0
 public override FAJobStepBase Clone()
 {
     var cloneObj = new FABandingPosMoveStep();
     CopyTo(cloneObj);
     return cloneObj;
 }