public OpenSource.UPnP.UPnPComplexType.Field GetFieldInfo() { OpenSource.UPnP.UPnPComplexType.Field f = new OpenSource.UPnP.UPnPComplexType.Field(); f.Name = variableName.Text; f.Type = variableType.SelectedItem.ToString(); f.MinOccurs = this.MinOccurs.ToString(); f.MaxOccurs = this.MaxOccurs; if (variableType.SelectedIndex > 9) { // Complex Type f.TypeNS = ((OpenSource.UPnP.UPnPComplexType)variableType.SelectedItem).Name_NAMESPACE; } else { // XSD Type f.TypeNS = "http://www.w3.org/2001/XMLSchema"; } return(f); }
public OpenSource.UPnP.UPnPComplexType.Field GetFieldInfo() { OpenSource.UPnP.UPnPComplexType.Field f = new OpenSource.UPnP.UPnPComplexType.Field(); f.Name = variableName.Text; f.Type = variableType.SelectedItem.ToString(); f.MinOccurs = this.MinOccurs.ToString(); f.MaxOccurs = this.MaxOccurs; if(variableType.SelectedIndex>9) { // Complex Type f.TypeNS = ((OpenSource.UPnP.UPnPComplexType)variableType.SelectedItem).Name_NAMESPACE; } else { // XSD Type f.TypeNS = "http://www.w3.org/2001/XMLSchema"; } return(f); }