BACnet.Explorer.Core.Plugins.Tabs.AnalogInputInfoTab.Panel.Panel C# (CSharp) Method

Panel() public method

public Panel ( ObjectInfo info ) : System
info ObjectInfo
return System
            public Panel(ObjectInfo info)
            {
                this._info = info;

                var obj = client.With<IAnalogInput>(_info.DeviceInstance, _info.ObjectIdentifier);

                var form = new FormBuilder()
                    .AddGroup(Constants.CorePropertiesHeader)
                        .AddRow(
                            createLabel(Constants.ObjectNameLabel),
                            bindEditor(obj, ai => ai.ObjectName))
                        .AddRow(
                            createLabel(Constants.DeviceTypeLabel),
                            bindEditor(obj, ai => ai.DeviceType, enabled: true))
                        .End()
                    .AddGroup(Constants.AdditionalPropertiesHeader)
                        .AddRow(
                            createLabel(Constants.PresentValueLabel),
                            bindEditor(obj, ai => ai.PresentValue),
                            createLabel(Constants.UnitsLabel),
                            bindEditor(obj, ai => ai.Units))
                        .AddRow(
                            createLabel(Constants.CovIncrementLabel),
                            bindEditor(obj, ai => ai.CovIncrement),
                            createLabel(Constants.DeadbandLabel),
                            bindEditor(obj, ai => ai.Deadband))
                        .AddRow(
                            createLabel(Constants.LowLimitLabel),
                            bindEditor(obj, ai => ai.LowLimit),
                            createLabel(Constants.HighLimitLabel),
                            bindEditor(obj, ai => ai.HighLimit))
                        .AddRow(
                            createLabel(Constants.MinPresValueLabel),
                            bindEditor(obj, ai => ai.MinPresValue, enabled: false),
                            createLabel(Constants.MaxPresValueLabel),
                            bindEditor(obj, ai => ai.MaxPresValue, enabled: false))
                        .End()
                    .End();

                this.Content = form.Root;
            }
AnalogInputInfoTab.Panel