public Panel(ObjectInfo info)
{
var obj = client.With<IAnalogOutput>(
info.DeviceInstance,
info.ObjectIdentifier);
var form = new FormBuilder()
.AddGroup(Constants.CorePropertiesHeader)
.AddRow(
createLabel(Constants.ObjectNameLabel),
bindEditor(obj, ao => ao.ObjectName)
)
.AddRow(
createLabel(Constants.DeviceTypeLabel),
bindEditor(obj, ao => ao.DeviceType)
)
.Split()
.AddRow(
createLabel(Constants.PresentValueLabel),
bindEditor(obj, ao => ao.PresentValue),
createLabel(Constants.UnitsLabel),
bindEditor(obj, ao => ao.Units))
.End()
.AddGroup(Constants.AdditionalPropertiesHeader)
.AddRow(
createLabel(Constants.LowLimitLabel),
bindEditor(obj, ao => ao.LowLimit),
createLabel(Constants.HighLimitLabel),
bindEditor(obj, ao => ao.HighLimit))
.AddRow(
createLabel(Constants.MinPresValueLabel),
bindEditor(obj, ao => ao.MinPresValue, enabled: false),
createLabel(Constants.MaxPresValueLabel),
bindEditor(obj, ao => ao.MaxPresValue, enabled: false))
.AddRow(
createLabel(Constants.ResolutionLabel),
bindEditor(obj, ao => ao.Resolution, enabled: false),
createLabel(Constants.CovIncrementLabel),
bindEditor(obj, ao => ao.CovIncrement, enabled: false))
.End()
.End();
this.Content = form.Root;
}