Class AppFormPagerHandler
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
PagerTabControlThe 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
FormIdstringThe form identifier.
FindAppForm(string)
Finds an application form by form identifier.
public AppForm FindAppForm(string FormId)
Parameters
FormIdstringThe 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
FormIdstringThe 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
ContextFormContextThe 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
RegistryNamestringThe registry name of the data form.
CallerControlThe caller control.
Returns
- DataForm
The shown data form.
ShowDataForm(DataFormContext)
Shows a data form in the pager.
public DataForm ShowDataForm(DataFormContext Context)
Parameters
ContextDataFormContextThe data form context.
Returns
- DataForm
The shown data form.