示例#1
0
        public void DeleteCode(GameGenieCode ACode)
        {
            XmlNode lCurCode = GameNode.SelectSingleNode(string.Format("gamegenie[@code='{0}']", ACode.Code.ToUpper().Trim()));

            if (lCurCode != null)
            {
                lCurCode.ParentNode.RemoveChild(lCurCode);
            }
            FGameCodes.Remove(ACode);
            FModified = true;
        }
示例#2
0
        public void ModifyCode(GameGenieCode ACode)
        {
            XmlNode lCurCode = GameNode.SelectSingleNode(string.Format("gamegenie[@code='{0}']", ACode.OldCode.ToUpper().Trim()));

            if (lCurCode != null)
            {
                lCurCode.Attributes.GetNamedItem("code").Value        = ACode.Code.ToUpper().Trim();
                lCurCode.Attributes.GetNamedItem("description").Value = ACode.Description;
                FModified = true;
            }
        }