C# Class Tp.Integration.Ide.VisualStudio.Services.Controller

Arranges web services calls and the underlying StopWatch component.
Inheritance: IDisposable
Exibir arquivo Open project: TargetProcess/Tp.Integration.Ide.VisualStudio Class Usage Examples

Public Methods

Method Description
ChangeState ( AssignableSimpleDTO assignable, EntityStateDTO entityState ) : void
Connect ( bool prompt ) : void
Controller ( ITimeTrackingRepository timeTrackingRepository, IWebServicesFactory webServicesFactory, IControllerEnvironment env ) : System
Disconnect ( ) : void
Dispose ( ) : void
GetCurrent ( ) : TimeRecord
GetLog ( ) : TimeRecord[]
Options ( ) : void
Refresh ( ) : void
Reset ( ) : void

Stops time interval measurement and resets the elapsed time to zero.

Resume ( ) : void
Start ( int assignableID ) : void
Stop ( ) : void
Stop ( string description ) : void
SubmitTime ( ) : void

Posts all recorded time to serever, clears spent time log if succesfull.

Private Methods

Method Description
Authenticate ( IWebServices webServices ) : bool
CompleteConnect ( Settings settings ) : void
GetNames ( ) : void

Updated internal dictionary with To Do list item names.

HandleToDoListChanges ( MyAssignments assignments ) : void
StopWatch_OnStart ( StopWatch stopWatch, StopWatchEventArgs eventArgs ) : void
StopWatch_OnStop ( StopWatch stopWatch, StopWatchEventArgs eventArgs ) : void

Method Details

ChangeState() public method

public ChangeState ( AssignableSimpleDTO assignable, EntityStateDTO entityState ) : void
assignable AssignableSimpleDTO
entityState EntityStateDTO
return void

Connect() public method

public Connect ( bool prompt ) : void
prompt bool
return void

Controller() public method

public Controller ( ITimeTrackingRepository timeTrackingRepository, IWebServicesFactory webServicesFactory, IControllerEnvironment env ) : System
timeTrackingRepository ITimeTrackingRepository
webServicesFactory IWebServicesFactory
env IControllerEnvironment
return System

Disconnect() public method

public Disconnect ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetCurrent() public method

public GetCurrent ( ) : TimeRecord
return TimeRecord

GetLog() public method

public GetLog ( ) : TimeRecord[]
return TimeRecord[]

Options() public method

public Options ( ) : void
return void

Refresh() public method

public Refresh ( ) : void
return void

Reset() public method

Stops time interval measurement and resets the elapsed time to zero.
public Reset ( ) : void
return void

Resume() public method

public Resume ( ) : void
return void

Start() public method

public Start ( int assignableID ) : void
assignableID int
return void

Stop() public method

public Stop ( ) : void
return void

Stop() public method

public Stop ( string description ) : void
description string
return void

SubmitTime() public method

Posts all recorded time to serever, clears spent time log if succesfull.
public SubmitTime ( ) : void
return void