Esempio n. 1
0
 void Owner_TextChangeInArea(object sender, FormDelegateElementEventArgs e)
 {
     try
     {
         IDOMHTMLElement el = (IDOMHTMLElement)e.Element.GetWebKitObject();
         if (!string.IsNullOrEmpty(el.getAttribute("id")))
         {
             UndoDeedsI[el.getAttribute("id")].Add(((IDOMHTMLInputElement)e.Element.GetWebKitObject()).value());
         }
         else
         {
             UndoDeedsN[el.getAttribute("name")].Add(((IDOMHTMLInputElement)e.Element.GetWebKitObject()).value());
         }
     }
     catch
     {
         IDOMHTMLElement el = (IDOMHTMLElement)e.Element.GetWebKitObject();
         if (!string.IsNullOrEmpty(el.getAttribute("id")))
         {
             UndoDeedsI.Add(el.getAttribute("id"), new List <string>());
             UndoDeedsI[el.getAttribute("id")].Add(el.getAttribute("value"));
         }
         else
         {
             UndoDeedsN.Add(el.getAttribute("name"), new List <string>());
             UndoDeedsN[el.getAttribute("name")].Add(el.getAttribute("value"));
         }
     }
 }
 void Owner_TextChangeInArea(object sender, FormDelegateElementEventArgs e)
 {
     try
     {
         IDOMHTMLElement el = (IDOMHTMLElement)e.Element.GetWebKitObject();
         if (!string.IsNullOrEmpty(el.getAttribute("id")))
             UndoDeedsI[el.getAttribute("id")].Add(((IDOMHTMLInputElement)e.Element.GetWebKitObject()).value());
         else
             UndoDeedsN[el.getAttribute("name")].Add(((IDOMHTMLInputElement)e.Element.GetWebKitObject()).value());
     }
     catch
     {
         IDOMHTMLElement el = (IDOMHTMLElement)e.Element.GetWebKitObject();
         if (!string.IsNullOrEmpty(el.getAttribute("id")))
         {
             UndoDeedsI.Add(el.getAttribute("id"), new List<string>());
             UndoDeedsI[el.getAttribute("id")].Add(el.getAttribute("value"));
         }
         else
         {
             UndoDeedsN.Add(el.getAttribute("name"), new List<string>());
             UndoDeedsN[el.getAttribute("name")].Add(el.getAttribute("value"));
         }
     }
 }