Class Form
Displays one record of an entity in a form.
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel.View
Assembly: TimeCockpit.Data.dll
Syntax
public class Form : View, INotifyPropertyChanged
Constructors
Form()
Initializes a new instance of the Form class.
Declaration
public Form()
Properties
AutoRefreshOnDataUpdates
Gets or sets a value indicating whether the form and all backreference tabs should be automatically updated if any data changes.
Declaration
public bool AutoRefreshOnDataUpdates { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Header
Gets or sets a header expression.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IncludeClause
Gets or sets the include clause for the statement. If no include clause is specified ".Include(*)" is used.
Declaration
public string IncludeClause { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Tabs
Gets a list of tabs in the form.
Declaration
public ObservableCollection<Tab> Tabs { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<Tab> |
UseParametersAsDefaultValues
Gets or sets a value indicating whether to use all passed parameters as default values when the name matches.
Declaration
public bool? UseParametersAsDefaultValues { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
VerticalTabOrder
Gets or sets a value indicating whether to use vertical tab order instead of the default horizontal tab order. If this value is not set, the tab order of the parenting form is used.
Declaration
public bool? VerticalTabOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Width
Gets or sets the default width of the form.
Declaration
public int? Width { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
TabChanged(Object, PropertyChangedEventArgs)
Event handler for the TabChanged(Object, PropertyChangedEventArgs) event. If a tab is changed in the Tabs collection, we fire the PropertyChanged event for Tabs
Declaration
protected void TabChanged(object sender, PropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Object sending the event (currently not used) |
System.ComponentModel.PropertyChangedEventArgs | e | Event arguments. |
TabsChanged(Object, NotifyCollectionChangedEventArgs)
Raised, when an item is added to the Tabs collection.
Declaration
protected void TabsChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender that fired the event |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | Provides information about event arguments |