public override bool LoadFromConfig(XmlElement node)
        {
            try
            {
                foreach (XmlNode level1Node in node)
                {
                    // level1 --  "ActionItem"
                    if (level1Node.NodeType == XmlNodeType.Comment)
                    {
                        continue;
                    }

                    var level1Item = (XmlElement)level1Node;

                    if (level1Item.Name.ToLower() == "event" + "item")
                    {
                        var strType       = level1Item.GetAttribute("Type");
                        var strTag        = level1Item.GetAttribute("Tag");
                        var strConstValue = level1Item.GetAttribute("ConstValue");

                        var tag        = OwnerMachine.GetTag(strTag);
                        var constValue = Convert.ToInt32(strConstValue);

                        if (string.Equals(strType, "CheckTag", StringComparison.CurrentCultureIgnoreCase))
                        {
                            var checkTag = new CheckTagEventItem(tag, constValue);
                            _checkTags.Add(checkTag);
                        }
                    }
                }

                return(true);
            }
            catch (Exception ex)
            {
                Log.Error(ex);
                return(false);
            }
        }
 public void AddCheckTagEventItem(CheckTagEventItem EventItem)
 {
     _checkTags.Add(EventItem);
 }