public static Element GetWrapper(Interop.IHTMLElement element, HtmlControl owner) { Type type; Element element2; string str = element.GetTagName().ToLower(); if (!str.Equals("input")) { type = (Type) wrapperTable[str]; } else { object[] pvars = new object[1]; element.GetAttribute("type", 1, pvars); string str2 = pvars[0].ToString().ToLower(); if (str2.Equals("button")) { type = (Type) wrapperTable["inputbutton"]; } else { type = (Type) wrapperTable[str2]; } } if (type != null) { element2 = (Element) type.GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(Interop.IHTMLElement) }, null).Invoke(new object[] { element }); } else { element2 = new Element(element); } element2.Owner = owner; return element2; }
protected override object CreateElementWrapper(Interop.IHTMLElement element) { object[] pvars = new object[1]; element.GetAttribute("RuntimeComponent", 1, pvars); object obj2 = pvars[0]; if ((obj2 != null) && !(obj2 is DBNull)) { return obj2; } return base.CreateElementWrapper(element); }
private bool IsElementLocked(Interop.IHTMLElement elem) { object[] pvars = new object[1]; elem.GetAttribute(DesignTimeLockAttribute, 0, pvars); if (pvars[0] == null) { pvars[0] = elem.GetStyle().GetAttribute(DesignTimeLockAttribute, 0); } return ((pvars[0] != null) && (pvars[0] is string)); }