protected void ZoomChanged(object sender, ZoomEventArgs e) { if (!GroupZoomEnabled) { return; } foreach (Pad pad in this.fPads) { if (e.ZoomUnzoom) { pad.AxisBottom.SetRange(e.XMin, e.XMax); pad.AxisTop.SetRange(e.XMin, e.XMax); pad.AxisBottom.Zoomed = true; pad.AxisTop.Zoomed = true; } else { pad.UnZoom(); } } this.UpdatePads(); }
protected void ZoomChanged(object sender, ZoomEventArgs e) { if (!GroupZoomEnabled) return; foreach (Pad pad in this.fPads) { if (e.ZoomUnzoom) { pad.AxisBottom.SetRange(e.XMin, e.XMax); pad.AxisTop.SetRange(e.XMin, e.XMax); pad.AxisBottom.Zoomed = true; pad.AxisTop.Zoomed = true; } else pad.UnZoom(); } this.UpdatePads(); }