C# Класс SebWindowsClient.SebWindowsClientForm

Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
closeSebClient bool
permittedProcessesCalls List
permittedProcessesIconImages List
permittedProcessesReferences List
sebPassword string
xulRunner System.Diagnostics.Process

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

Метод Описание
CloseSEBForm ( ) : void

Close SEB Form.

ExitApplication ( bool showLoadingScreen = true ) : void

Central code to exit the application Closes the form and asks for a quit password if necessary

GetApplicationPath ( string executable, string executablePath = "" ) : string

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.

GetPermittedApplicationPath ( Dictionary,System.Collections.Generic permittedProcess ) : string

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.

HideApplicationChooserForm ( ) : void

Hide SEB Application Chooser Form.

LoadFile ( string file ) : bool
OpenSEBForm ( ) : bool

Open SEB form.

SEBToForeground ( ) : void

Move SEB to the foreground.

SebWindowsClientForm ( ) : System

Constructor - initialise components.

SebWindowsClientForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Close form, if Quit Password is correct.

SebWindowsClientForm_Load ( object sender, EventArgs e ) : void

Load form.

SelectNextListItem ( ) : void

Show SEB Application Chooser Form.

SetVisibility ( bool show ) : void

Hide or show the Windows taskbar and startmenu.

ShowApplicationChooserForm ( ) : void

Show SEB Application Chooser Form.

ShowCloseDialogForm ( ) : void

Show SEB Close Form.

ShowCloseDialogFormConfirmation ( ) : void

Защищенные методы

Метод Описание
OnLoad ( EventArgs e ) : void

OnLoad: Get the file name from command line arguments and load it.

ToolStripButton_Click ( object sender, EventArgs e ) : void

Handle click on permitted process in SEB taskbar: If process isn't running, it is started, otherwise the click is ignored.

Приватные методы

Метод Описание
CreateProcessWithExitHandler ( string fullPathArgumentsCall ) : Process

Create a new process and add an exited event handler.

EnumThreadCallback ( IntPtr hWnd, IntPtr lParam ) : bool
EnumThreadWindows ( int threadId, EnumThreadProc pfnEnum, IntPtr lParam ) : bool
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
FindWindowEx ( IntPtr parentHwnd, IntPtr childAfterHwnd, IntPtr className, string windowText ) : IntPtr
FindWindowEx ( IntPtr parentHandle, IntPtr childAfter, string className, string windowTitle ) : IntPtr
GetActiveWindowOfProcess ( Process proc ) : IntPtr

Returns the handle of the active window of a process

GetApplicationIcon ( string fullPath ) : Icon

Get icon for an application specified by a full path.

GetDesktopWindow ( ) : IntPtr
GetProcessIcon ( Process process ) : Icon

Get icon for a running process.

GetVistaStartMenuWnd ( IntPtr taskBarWnd ) : IntPtr

Returns the window handle of the Vista start menu orb.

GetWindowText ( IntPtr hWnd, StringBuilder text, int count ) : int
GetWindowThreadProcessId ( IntPtr hwnd, int &lpdwProcessId ) : uint
InitClientRegistryAndKillProcesses ( ) : bool

Set registry values and close prohibited processes.

IsIconic ( IntPtr handle ) : bool
MyEnumThreadWindowsForProcess ( int pid, IntPtr lParam ) : bool

Callback method that is called from 'EnumThreadWindows' in 'GetVistaStartMenuWnd'.

MyEnumThreadWindowsProc ( IntPtr hWnd, IntPtr lParam ) : bool

Callback method that is called from 'EnumThreadWindows' in 'GetVistaStartMenuWnd'.

OnXULRunnerShutdDownRequested ( object sender, EventArgs e ) : void
OnXulRunnerQuitLinkPressed ( object sender, EventArgs e ) : void
PlaceFormOnDesktop ( bool KeyboardShown, bool isInitial = false ) : void
SetForegroundWindow ( IntPtr hWnd ) : IntPtr
SetFormOnDesktop ( ) : bool

Set form on Desktop.

SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags ) : bool
ShowWindow ( IntPtr hwnd, int nCmdShow ) : int
StartXulRunner ( string userDefinedArguments ) : bool

Start xulRunner process.

addPermittedProcessesToTS ( ) : void

Add permitted process names and icons to the SEB task bar (ToolStrip control) and start permitted processes which have the autostart option set

noSelectButton1_Click ( object sender, EventArgs e ) : void

Show dialog asking whether SEB should be closed

permittedProcess_Exited ( object sender, System e ) : void

Handle xulRunner_Exited event and display process information.

xulRunner_Exited ( object sender, System e ) : void

Handle xulRunner_Exited event and display process information.

Описание методов

CloseSEBForm() публичный Метод

Close SEB Form.
public CloseSEBForm ( ) : void
Результат void

ExitApplication() публичный Метод

Central code to exit the application Closes the form and asks for a quit password if necessary
public ExitApplication ( bool showLoadingScreen = true ) : void
showLoadingScreen bool
Результат void

GetApplicationPath() публичный Метод

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.
public GetApplicationPath ( string executable, string executablePath = "" ) : string
executable string
executablePath string
Результат string

GetPermittedApplicationPath() публичный Метод

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.
public GetPermittedApplicationPath ( Dictionary,System.Collections.Generic permittedProcess ) : string
permittedProcess Dictionary,System.Collections.Generic
Результат string

HideApplicationChooserForm() публичный Метод

Hide SEB Application Chooser Form.
public HideApplicationChooserForm ( ) : void
Результат void

LoadFile() публичный Метод

public LoadFile ( string file ) : bool
file string
Результат bool

OnLoad() защищенный Метод

OnLoad: Get the file name from command line arguments and load it.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

OpenSEBForm() публичный Метод

Open SEB form.
public OpenSEBForm ( ) : bool
Результат bool

SEBToForeground() публичный статический Метод

Move SEB to the foreground.
public static SEBToForeground ( ) : void
Результат void

SebWindowsClientForm() публичный Метод

Constructor - initialise components.
public SebWindowsClientForm ( ) : System
Результат System

SebWindowsClientForm_FormClosing() публичный Метод

Close form, if Quit Password is correct.
public SebWindowsClientForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosingEventArgs
Результат void

SebWindowsClientForm_Load() публичный Метод

Load form.
public SebWindowsClientForm_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

SelectNextListItem() публичный Метод

Show SEB Application Chooser Form.
public SelectNextListItem ( ) : void
Результат void

SetVisibility() публичный статический Метод

Hide or show the Windows taskbar and startmenu.
public static SetVisibility ( bool show ) : void
show bool true to show, false to hide
Результат void

ShowApplicationChooserForm() публичный Метод

Show SEB Application Chooser Form.
public ShowApplicationChooserForm ( ) : void
Результат void

ShowCloseDialogForm() публичный Метод

Show SEB Close Form.
public ShowCloseDialogForm ( ) : void
Результат void

ShowCloseDialogFormConfirmation() публичный Метод

public ShowCloseDialogFormConfirmation ( ) : void
Результат void

ToolStripButton_Click() защищенный Метод

Handle click on permitted process in SEB taskbar: If process isn't running, it is started, otherwise the click is ignored.
protected ToolStripButton_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

Описание свойств

closeSebClient публичное свойство

public bool closeSebClient
Результат bool

permittedProcessesCalls публичное свойство

public List permittedProcessesCalls
Результат List

permittedProcessesIconImages публичное свойство

public List permittedProcessesIconImages
Результат List

permittedProcessesReferences публичное свойство

public List permittedProcessesReferences
Результат List

sebPassword публичное свойство

public string sebPassword
Результат string

xulRunner публичное свойство

public Process,System.Diagnostics xulRunner
Результат System.Diagnostics.Process