/// <summary>
 /// Overridable OnImageBoxMouseResize event wrapper.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnImageBoxMouseResize(object sender, ImageBoxMouseEventArgs e)
 {
     if (ImageBoxMouseResize != null)
         ImageBoxMouseResize(sender, e);
 }
 /// <summary>
 /// Overridable OnImageBoxMouseDoubleClick event wrapper.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnImageBoxMouseDoubleClick(object sender, ImageBoxMouseEventArgs e)
 {
     if (ImageBoxDoubleClick != null)
         ImageBoxDoubleClick(sender, e);
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void imgbx_MainImage_ImageBoxMouseDown(object sender, ImageBoxMouseEventArgs e)
        {
            if (e.MouseButton == MouseButtons.Left)
            {
                int nX = e.X - imgbx_MainImage.AutoScrollPosition.X;
                int nY = e.Y - imgbx_MainImage.AutoScrollPosition.Y;

                switch (CurrentTool)
                {
                    case Tool.EyeDropper:
                        SubEyeDropperTool(nX, nY);
                        break;
                    case Tool.RedEyeCorrection:
                        SubRedEyeCorrectionTool(nX, nY);
                        break;
                }
            }
        }
 /// <summary>
 /// Overridable OnImageBoxMouseDown event wrapper.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnImageBoxMouseDown(object sender, ImageBoxMouseEventArgs e)
 {
     if (ImageBoxMouseDown != null)
         ImageBoxMouseDown(sender, e);
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void imgbx_MainImage_ImageBoxMouseMove(object sender, ImageBoxMouseEventArgs e)
        {
            int nX = e.X - imgbx_MainImage.AutoScrollPosition.X;
            int nY = e.Y - imgbx_MainImage.AutoScrollPosition.Y;

            tssl_MousePosition.Text = nX + ", " + nY;
        }