protected void OnDirectionalButtonClicked(DirectionalButtonClickedEventArgs ea)
 {
     if (DirectionalButtonClicked != null)
     {
         DirectionalButtonClicked(this, ea);
     }
 }
 protected void OnDirectionalButtonClicked(DirectionalButtonClickedEventArgs ea)
 {
     if (DirectionalButtonClicked != null)
         DirectionalButtonClicked(this, ea);
 }
示例#3
0
 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;
     }
 }