private NvdlTrigger ReadTrigger() { NvdlTrigger el = new NvdlTrigger(); FillLocation(el); el.NS = reader.GetAttribute("ns"); el.NameList = reader.GetAttribute("nameList"); FillForeignAttribute(el); if (reader.IsEmptyElement) { reader.Skip(); return(el); } reader.Read(); do { reader.MoveToContent(); if (reader.NodeType == XmlNodeType.EndElement) { break; } if (reader.NamespaceURI != Nvdl.Namespace) { el.Foreign.Add(XDocument.ReadFrom(reader)); continue; } } while (!reader.EOF); if (!reader.EOF) { reader.Read(); } return(el); }
public SimpleTrigger(NvdlTrigger trigger) { FillLocation(trigger); var al = new List <XmlQualifiedName> (); foreach (string ss in trigger.NameList.Split(' ')) { string s = ss.Trim(); if (s.Length == 0) { continue; } al.Add(new XmlQualifiedName(s, trigger.NS)); } names = al.ToArray(); }
public SimpleTrigger(NvdlTrigger trigger) { FillLocation(trigger); ArrayList al = new ArrayList(); foreach (string ss in trigger.NameList.Split(' ')) { string s = ss.Trim(); if (s.Length == 0) { continue; } al.Add(new XmlQualifiedName(s, trigger.NS)); } names = (XmlQualifiedName [])al.ToArray( typeof(XmlQualifiedName)); }
public void Remove(NvdlTrigger item) { List.Add(item); }
public void Add(NvdlTrigger item) { List.Add(item); }
public void Remove (NvdlTrigger item) { List.Add (item); }
public void Add (NvdlTrigger item) { List.Add (item); }
private NvdlTrigger ReadTrigger () { NvdlTrigger el = new NvdlTrigger (); FillLocation (el); el.NS = reader.GetAttribute ("ns"); el.NameList = reader.GetAttribute ("nameList"); FillForeignAttribute (el); if (reader.IsEmptyElement) { reader.Skip (); return el; } reader.Read (); do { reader.MoveToContent (); if (reader.NodeType == XmlNodeType.EndElement) break; if (reader.NamespaceURI != Nvdl.Namespace) { el.Foreign.Add (doc.ReadNode (reader)); continue; } } while (!reader.EOF); if (!reader.EOF) reader.Read (); return el; }
public SimpleTrigger (NvdlTrigger trigger) { FillLocation (trigger); ArrayList al = new ArrayList (); foreach (string ss in trigger.NameList.Split (' ')) { string s = ss.Trim (); if (s.Length == 0) continue; al.Add (new XmlQualifiedName (s, trigger.NS)); } names = (XmlQualifiedName []) al.ToArray ( typeof (XmlQualifiedName)); }