Beispiel #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);
		}
		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");
		}
Beispiel #4
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);
        }
Beispiel #5
0
 internal override void Read(BinaryXmlReader reader)
 {
     name = reader.ReadStringValue ("name");
     type = reader.ReadStringValue ("type");
     required = reader.ReadBooleanValue ("required");
     if (!reader.IgnoreDescriptionData)
         description = reader.ReadStringValue ("description");
     localizable = reader.ReadBooleanValue ("localizable");
 }
		void IBinaryXmlElement.Read (BinaryXmlReader reader)
		{
			folder = reader.ReadStringValue ("folder");
			reader.ReadValue ("files", files);
			domain = reader.ReadStringValue ("domain");
			sharedFolder = reader.ReadBooleanValue ("sharedFolder");
		}
		internal override void Read (BinaryXmlReader reader)
		{
			name = reader.ReadStringValue ("name");
			type = reader.ReadStringValue ("type");
			required = reader.ReadBooleanValue ("required");
			if (!reader.IgnoreDescriptionData)
				description = reader.ReadStringValue ("description");
			localizable = reader.ReadBooleanValue ("localizable");
			string ct = reader.ReadStringValue ("contentType");
			try {
				ContentType = (ContentType) Enum.Parse (typeof(ContentType), ct);
			} catch {
				ContentType = ContentType.Text;
			}
		}