private void picMain_Zoomed(object sender, ImageBoxZoomEventArgs e) { this._isZoomed = true; this.UpdateStatusBar(true); }
private void picMain_Zoomed(object sender, ImageBoxZoomEventArgs e) { if (!GlobalSetting.IsMouseNavigation) { _isZoomed = true; if (GlobalSetting.IsEnabledZoomLock) { GlobalSetting.ZoomLockValue = e.NewZoom; } //Zoom optimization ZoomOptimization(); UpdateStatusBar(true); } }
/// <summary> /// Raises the <see cref="Zoomed" /> event. /// </summary> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> protected virtual void OnZoomed(ImageBoxZoomEventArgs e) { EventHandler<ImageBoxZoomEventArgs> handler; handler = this.Zoomed; if (handler != null) { handler(this, e); } }
private void picMain_Zoomed(object sender, ImageBoxZoomEventArgs e) { //Zoom optimization ZoomOptimization(); this.UpdateStatusBar(true); }