private void SetZoomMode(AutoZoomMode mode) { this.documentAnnotationViewer1.ImageControl.AutoZoom = mode; if (mode == Atalasoft.Imaging.WinControls.AutoZoomMode.None) { this.documentAnnotationViewer1.ImageControl.Zoom = 1.0; this.toolStripZoomIn.Enabled = true; this.toolStripZoomOut.Enabled = true; } else { this.toolStripZoomIn.Enabled = false; this.toolStripZoomOut.Enabled = false; } }
private void SetZoomMode(AutoZoomMode mode) { annotationViewer.ImageControl.AutoZoom = mode; if (mode == AutoZoomMode.None) { annotationViewer.ImageControl.Zoom = 1.0; toolStripZoomIn.Enabled = true; toolStripZoomOut.Enabled = true; } else { toolStripZoomIn.Enabled = false; toolStripZoomOut.Enabled = false; } }