Property | Type | Description | |
---|---|---|---|
_addTargetCommand | RelayCommand | ||
_removeTargetCommand | RelayCommand | ||
canAddTarget | bool | ||
map | MarsRover.Map |
Method | Description | |
---|---|---|
GPSViewViewModel ( |
||
targetPin_MouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void |
Right click event to remove target (best way to do this even though using commands seems to be more elegant)
|
|
updateTargetDetails ( ) : void |
Updates the information in the details view
|
Method | Description | |
---|---|---|
OnPropertyChanged ( string name ) : void |
Method | Description | |
---|---|---|
ExecuteAddTargetCommand ( ) : void |
Add the target pin to target list
|
|
ExecuteRemoveTargetCommand ( ) : void |
(DEPRECATED) Remove the target pin to target list
|
|
RefreshMap ( ) : void |
Force map refresh when the rover pin gets updated.
|
|
UpdateGPS ( |
||
addTarget ( MarsRover.Location targetLocation ) : void |
Add a target to the map (triggered by Add button)
|
|
degreesToRadians ( double degrees ) : double |
Convert degrees to radians
|
|
determineCanAddTarget ( ) : void |
Decide whether or not to allow the command to execute
|
|
formatRoverPin ( ) : void |
Change the style of the rover pin
|
|
formatTargetPin ( Pushpin targetPin ) : void |
Change the style of the target pins
|
|
getDistance ( MarsRover.Location location1, MarsRover.Location location2 ) : double |
Get distance in kilometers between two locations
|
|
removeTarget ( Pushpin targetToRemove ) : void |
Remove target from map (triggered by right clocking on a pushpin)
|
|
setRoverPinLocation ( ) : void |
(DEPRECATED) Binds the rover location data being sent by StatusUpdater to PushPin on the Map
|
|
updateRoverLocation ( ) : void |
Update location of rover pin (triggered by the update of rovercoordinates
|
|
validateCoordinateString ( string coordinateString, double &coordinate ) : bool |
Data validation on user entered coordinates
|
public GPSViewViewModel ( |
||
d | ||
return | System |
protected OnPropertyChanged ( string name ) : void | ||
name | string | |
return | void |
public targetPin_MouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
sender | object | |
e | System.Windows.Input.MouseButtonEventArgs | |
return | void |