コード例 #1
0
        public static WorkflowNode Desearializeworkflownodexml(XmlNode xmlnode)
        {
            WorkflowNode wnode = new WorkflowNode();
            if (xmlnode.Attributes["id"] != null)
            {
                string workflownodeid = xmlnode.Attributes["id"].Value;

                bool isstart = bool.Parse(xmlnode.Attributes["isstart"].Value);
                string scenario = xmlnode.Attributes["scenario"].Value;
            }
            foreach (XmlNode cnode in xmlnode.ChildNodes)
            {
                if (cnode.Name == "FormPatterns")
                {
                    wnode.FormPatterns = FormPatterns.Desearilize(cnode);
                }
                else if (cnode.Name == "DataPatterns")
                {
                    wnode.DataPatterns = DataPatterns.Desearilize(cnode);
                }
                else if (cnode.Name == "dataobject")
                {
                    wnode.DataObject = EIBFormDesigner.Workflow.Node.DataObject.Desearilize(cnode);
                }
                else if (cnode.Name == "UserPatterns")
                {
                    wnode.UserPatterns = UserPatterns.Desearilize(cnode);
                }
            }
            return wnode;
        }
コード例 #2
0
ファイル: NodeUserControl.cs プロジェクト: harpreetoxyent/pnl
 public NodeUserControl()
 {
     InitializeComponent();
     workflowNode = new WorkflowNode();
     //workflowNode.WorkFlowNodeId = this.ControlName;
     label2.ContextMenuStrip = contextMenuStrip1;
 }