C# Class GW2PAO.Modules.Tasks.TasksController

Inheritance: BindableBase, IPlayerTasksController
ファイルを表示 Open project: SamHurne/gw2pao

Public Methods

Method Description
AddOrUpdateTask ( PlayerTask task ) : void

Adds a new task to the collection of player tasks

AddOrUpdateTask ( PlayerTaskViewModel taskViewModel ) : void

Adds a new task to the collection of player tasks

DeleteTask ( PlayerTask task ) : void

Deletes a task from the collection of player tasks

ExportTasks ( string path ) : void

Exports all tasks to the given path

ImportTasks ( string path ) : void

Imports all tasks from the given path

LoadTasksFile ( string path ) : void

Loads all tasks from the given path

Shutdown ( ) : void

Forces a shutdown of the controller, including all running timers/threads

Start ( ) : void

Starts the automatic refresh of the TasksController

Stop ( ) : void

Stops the automatic refresh of the TasksController

Private Methods

Method Description
EnsureTasksHaveContinentLocation ( ) : void

Loops through the collection of tasks and ensure that they all have a corresponding continent location

OnDailyReset ( ) : void

Performs actions on the daily reset

Refresh ( object state = null ) : void

The main refresh method

RefreshTaskDistancesAngles ( ) : void

Loops through the collection of tasks and refreshs their distance/angles

TasksController ( IZoneService zoneService, IPlayerService playerService, TasksUserData userData, System.ComponentModel.Composition.Hosting.CompositionContainer container ) : System

Method Details

AddOrUpdateTask() public method

Adds a new task to the collection of player tasks
public AddOrUpdateTask ( PlayerTask task ) : void
task GW2PAO.Modules.Tasks.Models.PlayerTask The task to add
return void

AddOrUpdateTask() public method

Adds a new task to the collection of player tasks
public AddOrUpdateTask ( PlayerTaskViewModel taskViewModel ) : void
taskViewModel GW2PAO.Modules.Tasks.ViewModels.PlayerTaskViewModel
return void

DeleteTask() public method

Deletes a task from the collection of player tasks
public DeleteTask ( PlayerTask task ) : void
task GW2PAO.Modules.Tasks.Models.PlayerTask The task to delete
return void

ExportTasks() public method

Exports all tasks to the given path
public ExportTasks ( string path ) : void
path string The path to export to
return void

ImportTasks() public method

Imports all tasks from the given path
public ImportTasks ( string path ) : void
path string The path to import from
return void

LoadTasksFile() public method

Loads all tasks from the given path
public LoadTasksFile ( string path ) : void
path string The path to import from
return void

Shutdown() public method

Forces a shutdown of the controller, including all running timers/threads
public Shutdown ( ) : void
return void

Start() public method

Starts the automatic refresh of the TasksController
public Start ( ) : void
return void

Stop() public method

Stops the automatic refresh of the TasksController
public Stop ( ) : void
return void