public void LoadPreset(string name) { var serializer = new ShortcutSerializer(this); serializer.LoadNodes(Presets[name].Nodes); //LoadNodes(Presets[name].Nodes); }
public XmlNode SaveToXmlNodePreset() { var ms = new MemoryStream(); var serializer = new ShortcutSerializer(this); serializer.SaveForPreset(ms); var xdoc = new XmlDocument(); ms.Seek(0, SeekOrigin.Begin); xdoc.Load(ms); return(xdoc.DocumentElement); }
public XmlNode SaveToXmlNodePreset() { var ms = new MemoryStream(); var serializer = new ShortcutSerializer(this); serializer.SaveForPreset(ms); var xdoc = new XmlDocument(); ms.Seek(0, SeekOrigin.Begin); xdoc.Load(ms); return xdoc.DocumentElement; }
private bool SaveCore(Stream stream) { var serializer = new ShortcutSerializer(this); return serializer.SaveToStream(stream); }
private void LoadCore(Stream stream) { var serializer = new ShortcutSerializer(this); serializer.LoadFromStream(stream); }
private bool SaveCore(Stream stream) { var serializer = new ShortcutSerializer(this); return(serializer.SaveToStream(stream)); }