C# Класс GPS.MainPage

Наследование: PhoneApplicationPage
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnNavigatedFrom ( System e ) : void
OnNavigatedTo ( System e ) : void

Приватные методы

Метод Описание
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

Описание методов

ConvertLocation() публичный Метод

public ConvertLocation ( GeoCoordinate location ) : void
location GeoCoordinate
Результат void

DrawACircle() публичный Метод

public DrawACircle ( GeoCoordinate oLoc, double dRadius ) : LocationCollection
oLoc GeoCoordinate
dRadius double
Результат LocationCollection

GetScreenSize() публичный Метод

public GetScreenSize ( ) : Size
Результат System.Windows.Size

MainPage() публичный Метод

public MainPage ( ) : System
Результат System

Navigate_To_Bookmarks() публичный Метод

public Navigate_To_Bookmarks ( ) : void
Результат void

OnNavigatedFrom() защищенный Метод

protected OnNavigatedFrom ( System e ) : void
e System
Результат void

OnNavigatedTo() защищенный Метод

protected OnNavigatedTo ( System e ) : void
e System
Результат void

ReverseGeocodeAddress() публичный статический Метод

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
Результат void

ToRadian() публичный Метод

public ToRadian ( double x ) : double
x double
Результат double

drawCircle() публичный Метод

public drawCircle ( GeoCoordinate oLoc, double radius ) : LocationCollection
oLoc GeoCoordinate
radius double
Результат LocationCollection

drawCircle() публичный Метод

public drawCircle ( GeoCoordinate oLoc, double radius, Color color ) : LocationCollection
oLoc GeoCoordinate
radius double
color Color
Результат LocationCollection

drawCircle() публичный Метод

public drawCircle ( LocationCollection locations, Color color ) : void
locations LocationCollection
color Color
Результат void

drawLine() публичный Метод

public drawLine ( LocationCollection points, Color color, int thickness ) : void
points LocationCollection
color Color
thickness int
Результат void

drawLine() публичный Метод

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
Результат void

getDistance() публичный Метод

public getDistance ( GeoCoordinate start, GeoCoordinate end ) : double
start GeoCoordinate
end GeoCoordinate
Результат double