public WorkflowNode() { FormPatterns = new FormPatterns(); DataPatterns = new DataPatterns(); UserPatterns = new UserPatterns(); dataObject = new DataObject(); }
public XmlNode Searialize(XmlDocument doc) { UserPatterns obj = this; XmlNode node = doc.CreateNode(XmlNodeType.Element, "UserPatterns", null); foreach (UserPattern fp in obj.ListofUserPatterns) { XmlNode cnode = doc.CreateNode(XmlNodeType.Element, "userpattern", null); XmlAttribute userpatternidatt = doc.CreateAttribute("userpatternid"); userpatternidatt.Value = fp.Userpatternid; cnode.Attributes.Append(userpatternidatt); node.AppendChild(cnode); } return(node); }
public static UserPatterns Desearilize(XmlNode node) { UserPatterns obj = null; if(node!=null && node.Name=="UserPatterns") { obj = new UserPatterns(); foreach (XmlNode cnode in node.ChildNodes) { if (cnode.Name == "userpattern") { obj.ListofUserPatterns.Add(new UserPattern(cnode.Attributes["userpatternid"].Value)); } } } return obj; }
public static UserPatterns Desearilize(XmlNode node) { UserPatterns obj = null; if (node != null && node.Name == "UserPatterns") { obj = new UserPatterns(); foreach (XmlNode cnode in node.ChildNodes) { if (cnode.Name == "userpattern") { obj.ListofUserPatterns.Add(new UserPattern(cnode.Attributes["userpatternid"].Value)); } } } return(obj); }