private void OnAutoPanModeChanged(AutoPanMode oldMode, AutoPanMode newMode) { if (AutoPanModeChanged != null) AutoPanModeChanged(this, new AutoPanModeChangedEventArgs(oldMode, newMode)); }