public bool ZoomOut(SVGControl svgControl) { if (Math.Round(svgControl.Scale, 1) < MaxScale) { svgControl.Scale = Math.Round(svgControl.Scale, 1) + 0.1; return(true); } return(false); }
public bool ZoomIn(SVGControl svgControl) { if (Math.Round(svgControl.Scale, 1) > 0.1) { svgControl.Scale = Math.Round(svgControl.Scale, 1) - 0.1; return(true); } return(false); }
public void NewInput(string value, SVGControl svgControl) { var x = int.Parse(value); if (x > 340) { x = 340; } else if (x < 1) { x = 1; } svgControl.Scale = Math.Round(MaxScale - (x / 100.0)); }