C# 클래스 RoverOperator.Content.GPSViewViewModel

상속: INotifyPropertyChanged
파일 보기 프로젝트 열기: jpadillak/Concordia_Capstone2013-14 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_addTargetCommand RelayCommand
_removeTargetCommand RelayCommand
canAddTarget bool
map MarsRover.Map

공개 메소드들

메소드 설명
GPSViewViewModel ( Dispatcher d ) : System
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

보호된 메소드들

메소드 설명
OnPropertyChanged ( string name ) : void

비공개 메소드들

메소드 설명
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 ( GPSCoordinates gpsCoordinates ) : void
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

메소드 상세

GPSViewViewModel() 공개 메소드

public GPSViewViewModel ( Dispatcher d ) : System
d System.Windows.Threading.Dispatcher
리턴 System

OnPropertyChanged() 보호된 메소드

protected OnPropertyChanged ( string name ) : void
name string
리턴 void

targetPin_MouseRightButtonUp() 공개 메소드

Right click event to remove target (best way to do this even though using commands seems to be more elegant)
public targetPin_MouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
리턴 void

updateTargetDetails() 공개 메소드

Updates the information in the details view
public updateTargetDetails ( ) : void
리턴 void

프로퍼티 상세

_addTargetCommand 공개적으로 프로퍼티

public RelayCommand _addTargetCommand
리턴 RelayCommand

_removeTargetCommand 공개적으로 프로퍼티

public RelayCommand _removeTargetCommand
리턴 RelayCommand

canAddTarget 공개적으로 프로퍼티

public bool canAddTarget
리턴 bool

map 공개적으로 프로퍼티

public Map,MarsRover map
리턴 MarsRover.Map