C# 클래스 ACAT.Lib.Core.Utility.WindowActiveWatchdog

Checks if the specified form has lost focus, and if so, immediately restores the focus back.
상속: IDisposable
파일 보기 프로젝트 열기: brlima94/acat-localization 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes resources

WindowActiveWatchdog ( Form form ) : System

Constructor. Allocates resources, event handlers

보호된 메소드들

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

Disposer. Release resources and cleanup.

비공개 메소드들

메소드 설명
_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

메소드 상세

Dispose() 공개 메소드

Disposes resources
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

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

WindowActiveWatchdog() 공개 메소드

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