コード例 #1
0
ファイル: WorkflowNode.cs プロジェクト: harpreetoxyent/pnl
 public WorkflowNode()
 {
     FormPatterns = new FormPatterns();
     DataPatterns = new DataPatterns();
     UserPatterns = new UserPatterns();
     dataObject = new DataObject();
 }
コード例 #2
0
 public WorkflowNode()
 {
     FormPatterns = new FormPatterns();
     DataPatterns = new DataPatterns();
     UserPatterns = new UserPatterns();
     dataObject   = new DataObject();
 }
コード例 #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);
        }
コード例 #4
0
ファイル: UserPattern.cs プロジェクト: harpreetoxyent/pnl
 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;
 }
コード例 #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);
        }