private void checkBoxAutomatic_CheckedChanged(object sender, EventArgs e)
{
if (!updateInProgress) {
UpdatePrintArea();
if (!printArea.autoPrintArea) {
// Was automatic, but isn't now, so put automatically generated print area
// into the rectangle. Calculate that by asking the controller.
printArea.autoPrintArea = true;
printArea.printAreaRectangle = controller.GetPrintAreaRectangle(printAreaKind, printArea);
printArea.autoPrintArea = false;
}
SendPrintAreaUpdate();
}
}