public void save_remember(string login, string password) { xml_doc doc = new xml_doc(); string from = DateTime.Now.ToString("dd/MM/yyyy"); doc.load_xml($@"<root data='{from}'><login/><password/></root>"); doc.node("//root/login").data = crypt.encrypt(login, from); doc.node("//root/password").data = crypt.encrypt(password, from); doc.save(path_file_data("remember.xml")); }
public void save() { _doc.save(); }