示例#1
0
        //public static void update(string trustedContactName)
        //{
        //    XElement xTrustedContact = new XElement("myKey");

        //    XAttribute xName = new XAttribute("name", name);
        //    XAttribute xPubKey = new XAttribute("pubKey", pubKey);
        //    XAttribute xNote = new XAttribute("note", note);

        //    xTrustedContact.Add(xName);
        //    xTrustedContact.Add(xPubKey);
        //    xTrustedContact.Add(xNote);

        //    XMLService.editElement(path, xElementName, xAttributeName, trustedContactName, xTrustedContact);
        //}

        public static void remove(string trustedContactName)
        {
            XMLService.deleteElement(path, xElementName, xAttributeName, trustedContactName);
        }
示例#2
0
 public static void remove(string myKeyName)
 {
     XMLService.deleteElement(path, xElementName, xAttributeName, myKeyName);
 }