示例#1
0
 /// <summary>
 /// Internal handler for the zoom changed event.
 /// </summary>
 protected void OnZoomChanged()
 {
     if (ZoomChanged != null)
         ZoomChanged.Invoke(this);
  
     if (m_ZoomedSection == -1)
     {
         if (PanelUnZoomed != null)
             PanelUnZoomed.Invoke(this);
     }
     else
     {
         if (PanelZoomed != null)
             PanelZoomed.Invoke(this);
     }
 }
示例#2
0
        /// <summary>
        /// Internal handler for the zoom changed event.
        /// </summary>
        protected void OnZoomChanged()
        {
            if (ZoomChanged != null)
            {
                ZoomChanged.Invoke(this, EventArgs.Empty);
            }

            if (m_ZoomedSection == -1)
            {
                if (PanelUnZoomed != null)
                {
                    PanelUnZoomed.Invoke(this, EventArgs.Empty);
                }
            }
            else
            {
                if (PanelZoomed != null)
                {
                    PanelZoomed.Invoke(this, EventArgs.Empty);
                }
            }
        }