C# Class GPS.MainPage

Inheritance: PhoneApplicationPage
Afficher le fichier Open project: ProjPossibility/CSUN-MobileMapMagnifier

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnNavigatedFrom ( System e ) : void
OnNavigatedTo ( System e ) : void

Private Methods

Méthode 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 méthode

public ConvertLocation ( GeoCoordinate location ) : void
location GeoCoordinate
Résultat void

DrawACircle() public méthode

public DrawACircle ( GeoCoordinate oLoc, double dRadius ) : LocationCollection
oLoc GeoCoordinate
dRadius double
Résultat LocationCollection

GetScreenSize() public méthode

public GetScreenSize ( ) : Size
Résultat System.Windows.Size

MainPage() public méthode

public MainPage ( ) : System
Résultat System

Navigate_To_Bookmarks() public méthode

public Navigate_To_Bookmarks ( ) : void
Résultat void

OnNavigatedFrom() protected méthode

protected OnNavigatedFrom ( System e ) : void
e System
Résultat void

OnNavigatedTo() protected méthode

protected OnNavigatedTo ( System e ) : void
e System
Résultat void

ReverseGeocodeAddress() public static méthode

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
Résultat void

ToRadian() public méthode

public ToRadian ( double x ) : double
x double
Résultat double

drawCircle() public méthode

public drawCircle ( GeoCoordinate oLoc, double radius ) : LocationCollection
oLoc GeoCoordinate
radius double
Résultat LocationCollection

drawCircle() public méthode

public drawCircle ( GeoCoordinate oLoc, double radius, Color color ) : LocationCollection
oLoc GeoCoordinate
radius double
color Color
Résultat LocationCollection

drawCircle() public méthode

public drawCircle ( LocationCollection locations, Color color ) : void
locations LocationCollection
color Color
Résultat void

drawLine() public méthode

public drawLine ( LocationCollection points, Color color, int thickness ) : void
points LocationCollection
color Color
thickness int
Résultat void

drawLine() public méthode

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
Résultat void

getDistance() public méthode

public getDistance ( GeoCoordinate start, GeoCoordinate end ) : double
start GeoCoordinate
end GeoCoordinate
Résultat double