Exemplo n.º 1
0
 public override void AddSubElements()
 {
     foreach (var e in NMElement.Children)
     {
         var ele = NMHook.getElement(NMElement.message.tabid, NMElement.message.browser, "//*[@zn_id=\"" + e.zn_id + "\"]");
         Children.Add(new NMTreeElement(this, false, ele[0]));
     }
 }
Exemplo n.º 2
0
 public override void AddSubElements()
 {
     foreach (var e in NMElement.Children)
     {
         var ele = NMHook.getElement(NMElement.message.tabid, NMElement.message.browser, "//*[@zn_id=\"" + e.zn_id + "\"]", TimeSpan.FromSeconds(2));
         if (ele.Length > 0)
         {
             Children.Add(new NMTreeElement(this, false, ele[0]));
         }
     }
 }