Table of Contents

Class AppFormPagerHandler

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

Handles a tab control which displays forms (UserControls) embedded in TabItems.

public class AppFormPagerHandler
Inheritance
AppFormPagerHandler
Inherited Members
Extension Methods

Constructors

AppFormPagerHandler(TabControl)

Initializes a new instance of the AppFormPagerHandler class.

public AppFormPagerHandler(TabControl Pager)

Parameters

Pager TabControl

The tab control handled by this instance.

Properties

Pager

Gets the tab control handled by this instance.

public TabControl Pager { get; }

Property Value

TabControl

Methods

CloseForm(string)

Closes a form by form identifier.

public void CloseForm(string FormId)

Parameters

FormId string

The form identifier.

FindAppForm(string)

Finds an application form by form identifier.

public AppForm FindAppForm(string FormId)

Parameters

FormId string

The form identifier.

Returns

AppForm

The matching form, if any; otherwise, null.

FindTabItem(string)

Finds a tab item by form identifier.

public TabItem FindTabItem(string FormId)

Parameters

FormId string

The form identifier.

Returns

TabItem

The matching tab item, if any; otherwise, null.

ShowAppForm(FormContext)

Shows an application form in the pager.

public AppForm ShowAppForm(FormContext Context)

Parameters

Context FormContext

The form context.

Returns

AppForm

The shown form.

ShowDataForm(string, Control)

Shows a data form in the pager.

public DataForm ShowDataForm(string RegistryName, Control Caller = null)

Parameters

RegistryName string

The registry name of the data form.

Caller Control

The caller control.

Returns

DataForm

The shown data form.

ShowDataForm(DataFormContext)

Shows a data form in the pager.

public DataForm ShowDataForm(DataFormContext Context)

Parameters

Context DataFormContext

The data form context.

Returns

DataForm

The shown data form.