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);
        }
Exemplo n.º 3
0
		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;
		}
Exemplo n.º 4
0
		private bool SaveCore(Stream stream)
		{
			var serializer = new ShortcutSerializer(this);
			return serializer.SaveToStream(stream);
		}
Exemplo n.º 5
0
		public void LoadPreset(string name)
		{
			var serializer = new ShortcutSerializer(this);
			serializer.LoadNodes(Presets[name].Nodes);

			//LoadNodes(Presets[name].Nodes);
		}
Exemplo n.º 6
0
		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));
        }
        private void LoadCore(Stream stream)
        {
            var serializer = new ShortcutSerializer(this);

            serializer.LoadFromStream(stream);
        }