C# Class ACAT.Lib.Core.Utility.WindowActiveWatchdog

Checks if the specified form has lost focus, and if so, immediately restores the focus back.
Inheritance: IDisposable
ファイルを表示 Open project: brlima94/acat-localization Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes resources

WindowActiveWatchdog ( Form form ) : System

Constructor. Allocates resources, event handlers

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposer. Release resources and cleanup.

Private Methods

Method Description
_form_Deactivate ( object sender, EventArgs e ) : void

Some other window just got focus. Restores focus back to the form

_form_VisibleChanged ( object sender, EventArgs e ) : void

Triggered when the visibility of the form changes

focusThisForm ( ) : void

Sets focus to the form

getFormName ( ) : String

Returns the name of the form

reactivateForm ( ) : void

Asychronously sets focus back to the form

Method Details

Dispose() public method

Disposes resources
public Dispose ( ) : void
return void

Dispose() protected method

Disposer. Release resources and cleanup.
protected Dispose ( bool disposing ) : void
disposing bool true to dispose managed resources
return void

WindowActiveWatchdog() public method

Constructor. Allocates resources, event handlers
public WindowActiveWatchdog ( Form form ) : System
form System.Windows.Forms.Form The form to watch
return System