Example #1
0
 void IBinaryXmlElement.Read(BinaryXmlReader reader)
 {
     File = reader.ReadStringValue ("File");
     LastScan = reader.ReadDateTimeValue ("LastScan");
     AddinId = reader.ReadStringValue ("AddinId");
     IsRoot = reader.ReadBooleanValue ("IsRoot");
     ScanError = reader.ReadBooleanValue ("ScanError");
     Domain = reader.ReadStringValue ("Domain");
     IgnorePaths = (StringCollection) reader.ReadValue ("IgnorePaths", new StringCollection ());
 }
		void IBinaryXmlElement.Read (BinaryXmlReader reader)
		{
			id = reader.ReadStringValue ("id");
			ns = reader.ReadStringValue ("ns");
			isroot = reader.ReadBooleanValue ("isroot");
			name = reader.ReadStringValue ("name");
			version = reader.ReadStringValue ("version");
			compatVersion = reader.ReadStringValue ("compatVersion");
			hasUserId = reader.ReadBooleanValue ("hasUserId");
			author = reader.ReadStringValue ("author");
			url = reader.ReadStringValue ("url");
			copyright = reader.ReadStringValue ("copyright");
			description = reader.ReadStringValue ("description");
			category = reader.ReadStringValue ("category");
			basePath = reader.ReadStringValue ("basePath");
			sourceAddinFile = reader.ReadStringValue ("sourceAddinFile");
			mainModule = (ModuleDescription) reader.ReadValue ("MainModule");
			optionalModules = (ModuleCollection) reader.ReadValue ("OptionalModules", new ModuleCollection (this));
			nodeSets = (ExtensionNodeSetCollection) reader.ReadValue ("NodeSets", new ExtensionNodeSetCollection (this));
			extensionPoints = (ExtensionPointCollection) reader.ReadValue ("ExtensionPoints", new ExtensionPointCollection (this));
			conditionTypes = (ConditionTypeDescriptionCollection) reader.ReadValue ("ConditionTypes", new ConditionTypeDescriptionCollection (this));
			
			if (mainModule != null)
				mainModule.SetParent (this);
		}
		public object ReadObject (string file, BinaryXmlTypeMap typeMap)
		{
			using (Stream s = OpenRead (file)) {
				BinaryXmlReader reader = new BinaryXmlReader (s, typeMap);
				return reader.ReadValue ("data");
			}
		}
		bool OpenFileForPath (string f, string objectId, BinaryXmlTypeMap typeMap, bool checkOnly, out object result)
		{
			result = null;
			
			if (!Exists (f)) {
				return false;
			}
			using (Stream s = OpenRead (f)) {
				BinaryXmlReader reader = new BinaryXmlReader (s, typeMap);
				reader.ReadBeginElement ();
				string id = reader.ReadStringValue ("id");
				if (objectId == null || objectId == id) {
					if (!checkOnly)
						result = reader.ReadValue ("data");
					return true;
				}
			}
			return false;
		}
Example #5
0
 internal override void Read(BinaryXmlReader reader)
 {
     assemblies = (StringCollection) reader.ReadValue ("Assemblies", new StringCollection ());
     dataFiles = (StringCollection) reader.ReadValue ("DataFiles", new StringCollection ());
     dependencies = (DependencyCollection) reader.ReadValue ("Dependencies", new DependencyCollection (this));
     extensions = (ExtensionCollection) reader.ReadValue ("Extensions", new ExtensionCollection (this));
     ignorePaths = (StringCollection) reader.ReadValue ("IgnorePaths", new StringCollection ());
 }
		internal override void Read (BinaryXmlReader reader)
		{
			path = reader.ReadStringValue ("path");
			nodes = (ExtensionNodeDescriptionCollection) reader.ReadValue ("Nodes", new ExtensionNodeDescriptionCollection (this));
		}
 internal override void Read(BinaryXmlReader reader)
 {
     nodeName = reader.ReadStringValue ("nodeName");
     attributes = (string[]) reader.ReadValue ("attributes");
     childNodes = (ExtensionNodeDescriptionCollection) reader.ReadValue ("ChildNodes", new ExtensionNodeDescriptionCollection (this));
 }
		void IBinaryXmlElement.Read (BinaryXmlReader reader)
		{
			folder = reader.ReadStringValue ("folder");
			reader.ReadValue ("files", files);
		}
Example #9
0
        void IBinaryXmlElement.Read(BinaryXmlReader reader)
        {
            id = reader.ReadStringValue ("id");
            ns = reader.ReadStringValue ("ns");
            isroot = reader.ReadBooleanValue ("isroot");
            name = reader.ReadStringValue ("name");
            version = reader.ReadStringValue ("version");
            compatVersion = reader.ReadStringValue ("compatVersion");
            hasUserId = reader.ReadBooleanValue ("hasUserId");
            author = reader.ReadStringValue ("author");
            url = reader.ReadStringValue ("url");
            copyright = reader.ReadStringValue ("copyright");
            description = reader.ReadStringValue ("description");
            category = reader.ReadStringValue ("category");
            basePath = reader.ReadStringValue ("basePath");
            sourceAddinFile = reader.ReadStringValue ("sourceAddinFile");
            defaultEnabled = reader.ReadBooleanValue ("defaultEnabled");
            domain = reader.ReadStringValue ("domain");
            mainModule = (ModuleDescription) reader.ReadValue ("MainModule");
            optionalModules = (ModuleCollection) reader.ReadValue ("OptionalModules", new ModuleCollection (this));
            nodeSets = (ExtensionNodeSetCollection) reader.ReadValue ("NodeSets", new ExtensionNodeSetCollection (this));
            extensionPoints = (ExtensionPointCollection) reader.ReadValue ("ExtensionPoints", new ExtensionPointCollection (this));
            conditionTypes = (ConditionTypeDescriptionCollection) reader.ReadValue ("ConditionTypes", new ConditionTypeDescriptionCollection (this));
            fileInfo = (object[]) reader.ReadValue ("FilesInfo", null);
            localizer = (ExtensionNodeDescription) reader.ReadValue ("Localizer");
            flags = (AddinFlags) reader.ReadInt32Value ("flags");
            properties = (AddinPropertyCollectionImpl) reader.ReadValue ("Properties", new AddinPropertyCollectionImpl (this));

            if (mainModule != null)
                mainModule.SetParent (this);
        }
Example #10
0
 internal override void Read(BinaryXmlReader reader)
 {
     path = reader.ReadStringValue ("path");
     name = reader.ReadStringValue ("name");
     if (!reader.IgnoreDescriptionData)
         description = reader.ReadStringValue ("description");
     rootAddin = reader.ReadStringValue ("rootAddin");
     addins = (List<string>) reader.ReadValue ("addins", new List<string> ());
     nodeSet = (ExtensionNodeSet) reader.ReadValue ("NodeSet");
     conditions = (ConditionTypeDescriptionCollection) reader.ReadValue ("Conditions", new ConditionTypeDescriptionCollection (this));
     defaultInsertBefore = reader.ReadStringValue ("defaultInsertBefore");
     defaultInsertAfter = reader.ReadStringValue ("defaultInsertAfter");
     if (nodeSet != null)
         nodeSet.SetParent (this);
 }
		internal override void Read (BinaryXmlReader reader)
		{
			id = reader.ReadStringValue ("Id");
			nodeTypes = (ExtensionNodeTypeCollection) reader.ReadValue ("NodeTypes", new ExtensionNodeTypeCollection (this));
			reader.ReadValue ("NodeSets", NodeSets.InternalList);
		}
Example #12
0
		void IBinaryXmlElement.Read (BinaryXmlReader reader)
		{
			reader.ReadValue ("index", index);
		}
		internal override void Read (BinaryXmlReader reader)
		{
			base.Read (reader);
			typeName = reader.ReadStringValue ("typeName");
			objectTypeName = reader.ReadStringValue ("objectTypeName");
			if (!reader.IgnoreDescriptionData)
				description = reader.ReadStringValue ("description");
			addinId = reader.ReadStringValue ("addinId");
			if (!reader.IgnoreDescriptionData)
				attributes = (NodeTypeAttributeCollection) reader.ReadValue ("Attributes", new NodeTypeAttributeCollection (this));
			customAttributeTypeName = reader.ReadStringValue ("customAttributeType");
		}
		void IBinaryXmlElement.Read (BinaryXmlReader reader)
		{
			folder = reader.ReadStringValue ("folder");
			reader.ReadValue ("files", files);
			domain = reader.ReadStringValue ("domain");
			sharedFolder = reader.ReadBooleanValue ("sharedFolder");
		}