Halyri - Häke  0.9.1
 All Classes Namespaces Functions Variables Enumerations Properties
MapController Class Reference

Controls maps. User can add specific pushpin to maps or all pushpins again. Maps can be too added. User can also center maps. Also handles closing maps. More...

Public Member Functions

delegate void MapWindowClosing ()
 Invoked when MapWindow is closing. More...
 
 MapController ()
 Constructor. Does nothing. More...
 
void AddMap (Map map)
 Adds map given map. More...
 
void MapToOwnWindow (ObservableCollection< Assignment > assignments)
 Makes new mapwindow and adds that map. Then adds pushpins to maps and adds eventhandler for mapwindow closing. More...
 
void Close ()
 Closes mapwindow if it is open. More...
 
void AddAllPushpins (ObservableCollection< Assignment > assignments)
 Adds puhspin to all maps. More...
 
void CenterMaps (Assignment assignment)
 Centers all maps to assignmets location. More...
 

Events

MapWindowClosing MapWindowClosingEvent
 

Detailed Description

Controls maps. User can add specific pushpin to maps or all pushpins again. Maps can be too added. User can also center maps. Also handles closing maps.

<author>Atte Söderlund</author>

Constructor & Destructor Documentation

Constructor. Does nothing.

Member Function Documentation

void AddAllPushpins ( ObservableCollection< Assignment assignments)

Adds puhspin to all maps.

Parameters
assignmentsList of assignmets that contains those pushpins
void AddMap ( Map  map)

Adds map given map.

Parameters
mapGiven map
void CenterMaps ( Assignment  assignment)

Centers all maps to assignmets location.

Parameters
assignmentAssignment that contains location
void Close ( )

Closes mapwindow if it is open.

void MapToOwnWindow ( ObservableCollection< Assignment assignments)

Makes new mapwindow and adds that map. Then adds pushpins to maps and adds eventhandler for mapwindow closing.

Parameters
assignmentsList of assignments so puhspins can be added
delegate void MapWindowClosing ( )

Invoked when MapWindow is closing.


The documentation for this class was generated from the following file: