Ejemplo n.º 1
0
 public WorkflowNode()
 {
     FormPatterns = new FormPatterns();
     DataPatterns = new DataPatterns();
     UserPatterns = new UserPatterns();
     dataObject = new DataObject();
 }
Ejemplo n.º 2
0
 public WorkflowNode()
 {
     FormPatterns = new FormPatterns();
     DataPatterns = new DataPatterns();
     UserPatterns = new UserPatterns();
     dataObject   = new DataObject();
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
        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);
        }