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; }
public NodeUserControl() { InitializeComponent(); workflowNode = new WorkflowNode(); //workflowNode.WorkFlowNodeId = this.ControlName; label2.ContextMenuStrip = contextMenuStrip1; }