/// ------------------------------------------------------------------------------------
 /// <summary>
 /// Called when the zoom percentage changed.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event
 /// data.</param>
 /// ------------------------------------------------------------------------------------
 private void HandleZoomPercentageChanged(object sender, ZoomPercentageChangedEventArgs e)
 {
     if (Visible && m_persistence != null && m_persistence.SettingsKey != null)
     {
         ChangeZoomPercent(e.OldZoomFactor.Height, e.NewZoomFactor.Height);
         ZoomFactor = e.NewZoomFactor.Height;
     }
 }
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Called when the zoom percentage changed.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event
 /// data.</param>
 /// ------------------------------------------------------------------------------------
 private void HandleZoomPercentageChanged(object sender, ZoomPercentageChangedEventArgs e)
 {
     if (Visible && m_persistence != null && m_persistence.SettingsKey != null)
     {
         ChangeZoomPercent(e.OldZoomFactor.Height, e.NewZoomFactor.Height);
         RegistryHelper.WriteFloatSetting(m_persistence.SettingsKey, "ZoomFactor" + Name,
                                          e.NewZoomFactor.Height);
     }
 }