public FoxmlDatastream(string id, FoxmlDatastreamState state, FoxmlControlGroup controlGroup, bool versionable) { this.id = id; switch (state) { case FoxmlDatastreamState.Active: this.state = "A"; break; case FoxmlDatastreamState.Deleted: this.state = "D"; break; case FoxmlDatastreamState.Inactive: this.state = "I"; break; } switch (controlGroup) { case FoxmlControlGroup.ExternallyReferenceContent: this.controlGroup = "E"; break; case FoxmlControlGroup.InlineXML: this.controlGroup = "X"; break; case FoxmlControlGroup.ManagedContent: this.controlGroup = "M"; break; case FoxmlControlGroup.RedirectedContent: this.controlGroup = "R"; break; } this.versionable = versionable; this.versionsList = new ArrayList(); }
public FoxmlDatastream(string id, FoxmlDatastreamState state, FoxmlControlGroup controlGroup, bool versionable) { this.id = id; switch (state) { case FoxmlDatastreamState.Active: this.state = "A"; break; case FoxmlDatastreamState.Deleted: this.state = "D"; break; case FoxmlDatastreamState.Inactive: this.state = "I"; break; } switch(controlGroup) { case FoxmlControlGroup.ExternallyReferenceContent: this.controlGroup = "E"; break; case FoxmlControlGroup.InlineXML: this.controlGroup = "X"; break; case FoxmlControlGroup.ManagedContent: this.controlGroup = "M"; break; case FoxmlControlGroup.RedirectedContent: this.controlGroup = "R"; break; } this.versionable = versionable; this.versionsList = new ArrayList(); }