public static void AttachToDocument(this PNode c1, PHTMLDocument doc) { doc.get_body( body => { c1.AttachTo(body); } ); }
public static void AttachToDocument(this PUltraComponent c1, PHTMLDocument doc) { c1.WhenReady( delegate { c1.Container.AttachToDocument(doc); } ); }