C# Class GPS.MainPage

Inheritance: PhoneApplicationPage
Mostra file Open project: ProjPossibility/CSUN-MobileMapMagnifier

Public Methods

Method Description
ConvertLocation ( GeoCoordinate location ) : void
DrawACircle ( GeoCoordinate oLoc, double dRadius ) : LocationCollection
GetScreenSize ( ) : Size
MainPage ( ) : System
Navigate_To_Bookmarks ( ) : void
ReverseGeocodeAddress ( Dispatcher uiDispatcher, CredentialsProvider credentialsProvider, Location location, Action completed = null, Action error = null ) : void
ToRadian ( double x ) : double
drawCircle ( GeoCoordinate oLoc, double radius ) : LocationCollection
drawCircle ( GeoCoordinate oLoc, double radius, Color color ) : LocationCollection
drawCircle ( LocationCollection locations, Color color ) : void
drawLine ( LocationCollection points, Color color, int thickness ) : void
drawLine ( double X1, double Y1, double X2, double Y2, Color color, int thickness ) : void
getDistance ( GeoCoordinate start, GeoCoordinate end ) : double

Protected Methods

Method Description
OnNavigatedFrom ( System e ) : void
OnNavigatedTo ( System e ) : void

Private Methods

Method Description
Alert_Click ( object sender, EventArgs e ) : void
Alert_Sound_MediaEnded ( object sender, RoutedEventArgs e ) : void
CalculateRouteByAddress ( String From, String To ) : void
CalculateRouteByLocation ( Location from, Location to ) : void
DeviceStatus_Click ( object sender, EventArgs e ) : void
FadeInOutAnimation ( ) : System.Windows.Media.Animation.Storyboard
FindMe_Click ( object sender, EventArgs e ) : void
HelpMe_Click ( object sender, RoutedEventArgs e ) : void
HelpMe_Hold ( object sender, System e ) : void
Help_Click ( object sender, EventArgs e ) : void
HighButtonClick ( object sender, EventArgs e ) : void

Click event handler for the high accuracy button

ImageToMap_Click ( object sender, RoutedEventArgs e ) : void
ImageToMap_Hold ( object sender, System e ) : void
Info_Click ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void
List_Click ( object sender, EventArgs e ) : void
LocationBookmarks_Click ( object sender, RoutedEventArgs e ) : void
LocationBookmarks_Hold ( object sender, System e ) : void
LowButtonClick ( object sender, EventArgs e ) : void

Click event handler for the low accuracy button

MainPage_BarMenuItem_Aerial_Click ( object sender, EventArgs e ) : void
MainPage_BarMenuItem_CarLocator_Click ( object sender, EventArgs e ) : void
Map_MapPan ( object sender, MapDragEventArgs e ) : void
Map_MapResolved ( object sender, EventArgs e ) : void
Map_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
MenuItem_CarLocation_Click ( object sender, RoutedEventArgs e ) : void
MenuItem_Destination_Click ( object sender, RoutedEventArgs e ) : void
MenuItem_StartLocation_Click ( object sender, RoutedEventArgs e ) : void
NotifyPropertyChanged ( string propertyName ) : void
OnTimerTick ( object sender, EventArgs e ) : void
Pushpin_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
SelectColor ( string type ) : Color
Settings_Click ( object sender, EventArgs e ) : void
Share_Click ( object sender, EventArgs e ) : void
StartLocationService ( GeoPositionAccuracy accuracy ) : void

Helper method to start up the location data acquisition

StopButtonClick ( object sender, EventArgs e ) : void
TakeMeHome_Click ( object sender, RoutedEventArgs e ) : void
TakeMeHome_Hold ( object sender, System e ) : void
Test_Click ( object sender, EventArgs e ) : void
TransitionElement ( string family, string mode ) : TransitionElement
TurnstileTransitionElement ( string mode ) : Microsoft.Phone.Controls.TurnstileTransition
button1_Click ( object sender, RoutedEventArgs e ) : void
findMyCar ( ) : void
findMyCar_Click ( object sender, EventArgs e ) : void
infoTimer_Tick ( object sender, EventArgs e ) : void
watcher_PositionChanged ( object sender, GeoPositionChangedEventArgs e ) : void
watcher_StatusChanged ( object sender, GeoPositionStatusChangedEventArgs e ) : void

Method Details

ConvertLocation() public method

public ConvertLocation ( GeoCoordinate location ) : void
location GeoCoordinate
return void

DrawACircle() public method

public DrawACircle ( GeoCoordinate oLoc, double dRadius ) : LocationCollection
oLoc GeoCoordinate
dRadius double
return LocationCollection

GetScreenSize() public method

public GetScreenSize ( ) : Size
return System.Windows.Size

MainPage() public method

public MainPage ( ) : System
return System

Navigate_To_Bookmarks() public method

public Navigate_To_Bookmarks ( ) : void
return void

OnNavigatedFrom() protected method

protected OnNavigatedFrom ( System e ) : void
e System
return void

OnNavigatedTo() protected method

protected OnNavigatedTo ( System e ) : void
e System
return void

ReverseGeocodeAddress() public static method

public static ReverseGeocodeAddress ( Dispatcher uiDispatcher, CredentialsProvider credentialsProvider, Location location, Action completed = null, Action error = null ) : void
uiDispatcher System.Windows.Threading.Dispatcher
credentialsProvider CredentialsProvider
location Location
completed Action
error Action
return void

ToRadian() public method

public ToRadian ( double x ) : double
x double
return double

drawCircle() public method

public drawCircle ( GeoCoordinate oLoc, double radius ) : LocationCollection
oLoc GeoCoordinate
radius double
return LocationCollection

drawCircle() public method

public drawCircle ( GeoCoordinate oLoc, double radius, Color color ) : LocationCollection
oLoc GeoCoordinate
radius double
color Color
return LocationCollection

drawCircle() public method

public drawCircle ( LocationCollection locations, Color color ) : void
locations LocationCollection
color Color
return void

drawLine() public method

public drawLine ( LocationCollection points, Color color, int thickness ) : void
points LocationCollection
color Color
thickness int
return void

drawLine() public method

public drawLine ( double X1, double Y1, double X2, double Y2, Color color, int thickness ) : void
X1 double
Y1 double
X2 double
Y2 double
color Color
thickness int
return void

getDistance() public method

public getDistance ( GeoCoordinate start, GeoCoordinate end ) : double
start GeoCoordinate
end GeoCoordinate
return double