C# 클래스 Hourglass.Managers.KeepAwakeManager

Manages the thread-state of the main user interface thread to keep the computer from sleeping while a timer is running in any window.
상속: Hourglass.Managers.Manager
파일 보기 프로젝트 열기: Dziemborowicz/Hourglass

공개 프로퍼티들

프로퍼티 타입 설명
Instance KeepAwakeManager

공개 메소드들

메소드 설명
StartKeepAwakeFor ( object obj ) : void

Adds the specified object to the set of objects that require that the system be kept awake and starts keeping the system awake if it was not already being kept awake.

StopKeepAwakeFor ( object obj ) : void

Removes the specified object from the set of objects that require that the system be kept awake and stops keeping the system awake if it was being kept awake.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes the manager.

비공개 메소드들

메소드 설명
KeepAwakeManager ( ) : System.Collections.Generic

Prevents a default instance of the KeepAwakeManager class from being created.

StartKeepAwake ( ) : void

Start keeping the system awake. If the system is already being kept awake, this method does nothing.

StopKeepAwake ( ) : void

Stops keeping the system awake. If the system is not being kept awake, this method does nothing.

UpdateKeepAwake ( ) : void

Starts or stops keeping the system awake as required.

메소드 상세

Dispose() 보호된 메소드

Disposes the manager.
protected Dispose ( bool disposing ) : void
disposing bool A value indicating whether this method was invoked by an explicit call to .
리턴 void

StartKeepAwakeFor() 공개 메소드

Adds the specified object to the set of objects that require that the system be kept awake and starts keeping the system awake if it was not already being kept awake.
public StartKeepAwakeFor ( object obj ) : void
obj object An .
리턴 void

StopKeepAwakeFor() 공개 메소드

Removes the specified object from the set of objects that require that the system be kept awake and stops keeping the system awake if it was being kept awake.
public StopKeepAwakeFor ( object obj ) : void
obj object An .
리턴 void

프로퍼티 상세

Instance 공개적으로 정적으로 프로퍼티

Singleton instance of the KeepAwakeManager class.
public static KeepAwakeManager,Hourglass.Managers Instance
리턴 KeepAwakeManager