C# Class RPS.Screensaver

Inheritance: System.Windows.Forms.ApplicationContext
ファイルを表示 Open project: marijnkampf/Random-Photo-Screensaver Class Usage Examples

Public Properties

Property Type Description
CM_ALL int
Desktop System.Drawing.Rectangle
action Actions
applicationClosing bool
clipboardReady bool
config Config
configHidden bool
currentMonitor int
debugLog List
desktopRatio float
fileNodes FileNodes
monitors Monitor[]
readOnly bool
showUpdateStatus bool
version System.Version

Public Methods

Method Description
MouseMove ( object sender, MouseEventArgs e ) : void
OnExit ( ) : void
PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
actionNext ( int step ) : void
actionPrevious ( int step ) : void
appendDebugFile ( int monitor, string log ) : void
checkBrowserVersionOk ( ) : bool
getNrMonitors ( ) : int
getStep ( PreviewKeyDownEventArgs e ) : int
hideUpdateInfo ( ) : void
initForScreensaverAndWallpaper ( ) : void
initializeMonitors ( ) : void
pauseAll ( bool showInfo ) : void
resetMouseMove ( ) : void
resumeAll ( bool showInfo ) : void
showAllUpToDate ( ) : void
showInfoOnMonitors ( string info ) : void
showInfoOnMonitors ( string info, bool highPriority ) : void
showInfoOnMonitors ( string info, bool highPriority, bool fade ) : void
showUpdateInfo ( string info ) : void
startTimers ( ) : void
stopTimers ( ) : void

Private Methods

Method Description
CleanUpOnException ( object sender, UnhandledExceptionEventArgs args ) : void
DoWorkDeleteFile ( object sender, DoWorkEventArgs e ) : void
GetShortPathName ( string longPath, StringBuilder buffer, int bufferSize ) : int
IsRunAsAdmin ( ) : bool

The function checks whether the current process is run as administrator. In other words, it dictates whether the primary access token of the process belongs to user account that is a member of the local Administrators group and it is elevated.

Main ( string args ) : void
MonitorsAndConfigReady ( ) : void
MouseClick ( object sender, MouseEventArgs e ) : void
OnFormClosed ( object sender, EventArgs e ) : void
Screensaver ( Actions action, bool readOnly, IntPtr hwnds ) : System
SwitchToThisWindow ( IntPtr hWnd, bool turnon ) : void
mouseMoveTimer_Tick ( object sender, EventArgs e ) : void
setAsCurrentScreensaver ( string path ) : void
singleProcess ( Actions action ) : bool

Method Details

MouseMove() public method

public MouseMove ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

OnExit() public method

public OnExit ( ) : void
return void

PreviewKeyDown() public method

public PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
sender object
e System.Windows.Forms.PreviewKeyDownEventArgs
return void

actionNext() public method

public actionNext ( int step ) : void
step int
return void

actionPrevious() public method

public actionPrevious ( int step ) : void
step int
return void

appendDebugFile() public method

public appendDebugFile ( int monitor, string log ) : void
monitor int
log string
return void

checkBrowserVersionOk() public static method

public static checkBrowserVersionOk ( ) : bool
return bool

getNrMonitors() public method

public getNrMonitors ( ) : int
return int

getStep() public method

public getStep ( PreviewKeyDownEventArgs e ) : int
e System.Windows.Forms.PreviewKeyDownEventArgs
return int

hideUpdateInfo() public method

public hideUpdateInfo ( ) : void
return void

initForScreensaverAndWallpaper() public method

public initForScreensaverAndWallpaper ( ) : void
return void

initializeMonitors() public method

public initializeMonitors ( ) : void
return void

pauseAll() public method

public pauseAll ( bool showInfo ) : void
showInfo bool
return void

resetMouseMove() public method

public resetMouseMove ( ) : void
return void

resumeAll() public method

public resumeAll ( bool showInfo ) : void
showInfo bool
return void

showAllUpToDate() public method

public showAllUpToDate ( ) : void
return void

showInfoOnMonitors() public method

public showInfoOnMonitors ( string info ) : void
info string
return void

showInfoOnMonitors() public method

public showInfoOnMonitors ( string info, bool highPriority ) : void
info string
highPriority bool
return void

showInfoOnMonitors() public method

public showInfoOnMonitors ( string info, bool highPriority, bool fade ) : void
info string
highPriority bool
fade bool
return void

showUpdateInfo() public method

public showUpdateInfo ( string info ) : void
info string
return void

startTimers() public method

public startTimers ( ) : void
return void

stopTimers() public method

public stopTimers ( ) : void
return void

Property Details

CM_ALL public_oe static_oe property

public static int CM_ALL
return int

Desktop public_oe property

public Rectangle,System.Drawing Desktop
return System.Drawing.Rectangle

action public_oe property

public Actions action
return Actions

applicationClosing public_oe property

public bool applicationClosing
return bool

clipboardReady public_oe property

public bool clipboardReady
return bool

config public_oe property

public Config,RPS config
return Config

configHidden public_oe property

public bool configHidden
return bool

currentMonitor public_oe property

public int currentMonitor
return int

debugLog public_oe property

public List debugLog
return List

desktopRatio public_oe property

public float desktopRatio
return float

fileNodes public_oe property

public FileNodes,RPS fileNodes
return FileNodes

monitors public_oe property

public Monitor[] monitors
return Monitor[]

readOnly public_oe property

public bool readOnly
return bool

showUpdateStatus public_oe property

public bool showUpdateStatus
return bool

version public_oe property

public Version,System version
return System.Version