private void previewImageBox_Zoomed(object sender, ImageBoxZoomEventArgs e)
 {
   this.UpdateZoomLabel();
 }
    /// <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);
    }
Esempio n. 3
0
 private void imgPreview_Zoomed(object sender, Cyotek.Windows.Forms.ImageBoxZoomEventArgs e)
 {
     tlsPreviewZoom.Text = "Zoom: " + imgPreview.Zoom + "%";
 }