/// <summary> /// Draw in the context of the container using the given draw handler. /// The graphics provided to the draw handler is adjust for the /// zoom factor and position of the container. /// </summary> /// <param name="g"></param> public void DrawContainer(ItemPaintEventArgs e, DrawContainerHandler drawHandler) { var g = e.Graphics; var savedTx = g.Transform; try { drawHandler(new ItemPaintEventArgs(g, e.VisibleRectangle)); } finally { g.Transform = savedTx; } }
/// <summary> /// Draw in the context of the container using the given draw handler. /// The graphics provided to the draw handler is adjust for the /// zoom factor and position of the container. /// </summary> /// <param name="g"></param> void IVCItemContainer.DrawContainer(ItemPaintEventArgs e, DrawContainerHandler drawHandler) { rootContainer.DrawContainer(e, drawHandler); }