Coon.Compass.DtaGenerator.DtaViewerForm.ZoomEvent C# (CSharp) Méthode

ZoomEvent() private méthode

private ZoomEvent ( ZedGraphControl sender, ZedGraph.ZoomState oldState, ZedGraph.ZoomState newState ) : void
sender ZedGraph.ZedGraphControl
oldState ZedGraph.ZoomState
newState ZedGraph.ZoomState
Résultat void
        private void ZoomEvent(ZedGraphControl sender, ZoomState oldState, ZoomState newState)
        {
            if (sender == zedGraphControl1)
            {
                newState.ApplyState(zedGraphControl2.GraphPane);
                zedGraphControl2.Invalidate();
                zedGraphControl2.AxisChange();
            } else {
                newState.ApplyState(zedGraphControl1.GraphPane);
                zedGraphControl1.Invalidate();
                zedGraphControl1.AxisChange();
            }
        }