protected void OnDirectionalButtonClicked(DirectionalButtonClickedEventArgs ea) { if (DirectionalButtonClicked != null) { DirectionalButtonClicked(this, ea); } }
protected void OnDirectionalButtonClicked(DirectionalButtonClickedEventArgs ea) { if (DirectionalButtonClicked != null) DirectionalButtonClicked(this, ea); }
private void mapScrollControl_DirectionalButtonClicked(object sender, DirectionalButtonClickedEventArgs ea) { switch (ea.Direction) { case VEOrientation.North: mapControl.PanMap(0, -PAN_OFFSET); break; case VEOrientation.East: mapControl.PanMap(PAN_OFFSET, 0); break; case VEOrientation.South: mapControl.PanMap(0, PAN_OFFSET); break; case VEOrientation.West: mapControl.PanMap(-PAN_OFFSET, 0); break; } }