private void toolStripButton1_Click(object sender, EventArgs e) { var diag = new ZoomScaleDialog(); if (diag.ShowDialog() == DialogResult.OK) { viewer.ZoomToScale(diag.Value); } }