C# Class Ushahidi.Common.Controls.MapBox

MapBox
Inheritance: System.Windows.Forms.UserControl
Mostrar archivo Open project: ushahidi/Ushahidi_WinMobile

Public Methods

Method Description
MapBox ( ) : System
ReCalculate ( ) : bool

Recalculate Latitude and Longitude

ToString ( ) : string

Protected Methods

Method Description
OnKeyDown ( KeyEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
LatitudeToY ( double y ) : double
LongitudeToX ( double x ) : double
OnGotFocus ( object sender, EventArgs e ) : void
OnLostFocus ( object sender, EventArgs e ) : void
OnResize ( object sender, EventArgs e ) : void
OnZoomIn ( ) : void

Fire Zoom In Event

OnZoomOut ( ) : void

Fire Zoom Out Event

XToLongitude ( double x ) : double
YToLatitude ( double y ) : double

Method Details

MapBox() public method

public MapBox ( ) : System
return System

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

ReCalculate() public method

Recalculate Latitude and Longitude
public ReCalculate ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string