C# Класс ACAT.Lib.Core.Utility.WindowActiveWatchdog

Checks if the specified form has lost focus, and if so, immediately restores the focus back.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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