public sxProperty(IsxDocClass docClass, XmlNode xml) { string symName = xml.SelectSingleNode("symname").InnerText; if (symName == "sxOriginalFileName" || symName == "sxHasParent" || symName == "sxHasChild") { return; } if (docClass.PropertyDefinitions.Keys.Contains(symName)) { m_propDef = docClass.PropertyDefinitions[symName]; m_origValue = null; string val = xml.SelectSingleNode("propdef").InnerText; if (!string.IsNullOrEmpty(val)) { m_value = val; } m_req = (xml.SelectSingleNode("isvalreq").InnerText == "1"); m_hidden = (xml.SelectSingleNode("ishidden").InnerText == "1"); m_readOnly = (xml.SelectSingleNode("isreadonly").InnerText == "1"); } else { } }
public sxProperty(IsxPropertyDefinition propDef) { m_propDef = propDef; m_value = null; m_origValue = null; m_req = propDef.Required; m_hidden = propDef.Hidden; m_readOnly = false; }
public sxProperty(IsxDocClass docClass, string symName) { //if (symName.ToLower() == "sxoriginalfilename" || symName == "sxhasparent" || symName == "sxhaschild") //{ // return; //} if (docClass.PropertyDefinitions.Keys.Contains(symName)) { m_propDef = docClass.PropertyDefinitions[symName]; m_origValue = null; string val = ""; if (!string.IsNullOrEmpty(val)) { m_value = val; } m_req = false; m_hidden = false; m_readOnly = false; } else { } }