![]() |
Halyri - Häke
0.9.1
|
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 () |
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... | |
void | AddPushPinToAssignment (Assignment assignment) |
Adds all puhspins from specific assingment. More... | |
Events | |
MapWindowClosing | MapWindowClosingEvent |
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>
Hake_WPF.MapController.MapController | ( | ) |
Constructor. Does nothing.
void Hake_WPF.MapController.AddAllPushpins | ( | ObservableCollection< Assignment > | assignments | ) |
Adds puhspin to all maps.
assignments | List of assignmets that contains those pushpins |
void Hake_WPF.MapController.AddMap | ( | Map | map | ) |
Adds map given map.
map | Given map |
void Hake_WPF.MapController.AddPushPinToAssignment | ( | Assignment | assignment | ) |
Adds all puhspins from specific assingment.
assignment | Specific assingment that puhspins is added |
void Hake_WPF.MapController.CenterMaps | ( | Assignment | assignment | ) |
Centers all maps to assignmets location.
assignment | Assignment that contains location |
void Hake_WPF.MapController.Close | ( | ) |
Closes mapwindow if it is open.
void Hake_WPF.MapController.MapToOwnWindow | ( | ObservableCollection< Assignment > | assignments | ) |
Makes new mapwindow and adds that map. Then adds pushpins to maps and adds eventhandler for mapwindow closing.
assignments | List of assignments so puhspins can be added |
delegate void Hake_WPF.MapController.MapWindowClosing | ( | ) |
MapWindowClosing Hake_WPF.MapController.MapWindowClosingEvent |