예제 #1
0
        /// ------------------------------------------------------------------------------------
        private bool SetZoom()
        {
            double newValue;

            if (_pctFormatter.Format(_comboBoxZoom.Text, out newValue) != null)
            {
                ZoomPercentage = (float)newValue;
                return(ZoomPercentage.Equals((float)newValue));
            }
            SetZoomTextInComboBox();
            return(false);
        }
 public void Set(ZoomPercentage zoomLevel)
 {
     ZoomLevel = new ZoomPercentage(zoomLevel.Value);
 }