public static XGraphics FromForm(XForm form) { if (form.gfx != null) return form.gfx; return new XGraphics(form); }