Table of Contents

Class DesktopRegistry

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

A registry of FormDef instances.

public static class DesktopRegistry
Inheritance
DesktopRegistry
Inherited Members

Properties

Forms

The list of registered forms.

public static DefList<FormDef> Forms { get; }

Property Value

DefList<FormDef>

Methods

AddForm(string, string, string)

Adds a definition to the registry.

If the definition exists, an exception is thrown.

public static FormDef AddForm(string Name, string Module, string Group)

Parameters

Name string
Module string
Group string

Returns

FormDef

AddForm(string, string, string, string)

Adds a definition to the registry.

If the definition exists, an exception is thrown.

public static FormDef AddForm(string Name, string Module, string ClassName, string Group)

Parameters

Name string
Module string
ClassName string
Group string

Returns

FormDef

AddForm(string, string, string, string, string)

Adds a definition to the registry.

If the definition exists, an exception is thrown.

public static FormDef AddForm(string Name, string Module, string ClassName, string TitleKey, string Group)

Parameters

Name string
Module string
ClassName string
TitleKey string
Group string

Returns

FormDef

AddForm(string, string, string, string, string, string, bool, UserLevel)

Adds a definition to the registry.

If the definition exists, an exception is thrown.

public static FormDef AddForm(string Name, string TitleKey = null, string Module = null, string ClassName = null, string Group = null, string ItemClassName = null, bool IsReadOnly = false, UserLevel SecurityLevel = UserLevel.None)

Parameters

Name string
TitleKey string
Module string
ClassName string
Group string
ItemClassName string
IsReadOnly bool
SecurityLevel UserLevel

Returns

FormDef

AddOrUpdateForm(string, string, string, string, string, string, bool?, UserLevel?)

Adds or updates a form definition.

NOTE: When the definition already exists, non-null parameters and nullable boolean parameters with a value update its scalar properties. The existing definition instance and its child collections are preserved.

public static FormDef AddOrUpdateForm(string Name, string TitleKey = null, string Module = null, string ClassName = null, string Group = null, string ItemClassName = null, bool? IsReadOnly = null, UserLevel? SecurityLevel = null)

Parameters

Name string
TitleKey string
Module string
ClassName string
Group string
ItemClassName string
IsReadOnly bool?
SecurityLevel UserLevel?

Returns

FormDef

CreateDataForm(string)

Creates a DataForm instance based on the name of a definition.

public static DataForm CreateDataForm(string Name)

Parameters

Name string

Returns

DataForm