void ParseViews(PDModel m, PDPackage package, XmlNode root) { foreach (XmlNode viewNode in root.ChildNodes) { PDView view = new PDView(); view.Model = m; view.Package = package; view.ID = viewNode.Attributes["Id"].Value; foreach (XmlNode node in viewNode.ChildNodes) { switch (node.Name) { case "a:Name": view.Name = node.InnerText; break; case "a:Code": view.Code = node.InnerText; break; case "a:Comment": view.Comment = node.InnerText; break; default: break; } }//end parse view if (package == null) { m.AddView(view); } else { package.AddView(view); } }//end parse views }
public void AddView(PDView view) { _ViewList.Add(view); }
public static SOView ToSOView(PDView view) { SOView v = new SOView(); return(v); }
public static SOView ToSOView(PDView view) { SOView v = new SOView(); return v; }