public Panel(ObjectInfo info)
{
var obj = client.With<IBinaryInput>(
info.DeviceInstance,
info.ObjectIdentifier);
var form = new FormBuilder()
.AddGroup(Constants.CorePropertiesHeader)
.AddRow(
createLabel(Constants.ObjectNameLabel),
bindEditor(obj, bi => bi.ObjectName)
)
.AddRow(
createLabel(Constants.DeviceTypeLabel),
bindEditor(obj, bi => bi.DeviceType)
)
.Split()
.AddRow(
createLabel(Constants.PresentValueLabel),
bindEditor(obj, bi => bi.PresentValue),
createLabel(Constants.OutOfServiceLabel),
bindEditor(obj, bi => bi.OutOfService))
.End()
.AddGroup(Constants.AdditionalPropertiesHeader)
.AddRow(
createLabel(Constants.ChangeOfStateCountLabel),
bindEditor(obj, bi => bi.ChangeOfStateCount, enabled: false),
createLabel(Constants.ChangeOfStateTimeLabel),
bindEditor(obj, bi => bi.ChangeOfStateTime, enabled: false))
.AddRow(
createLabel(Constants.ActiveTextLabel),
bindEditor(obj, bi => bi.ActiveText),
createLabel(Constants.InactiveTextLabel),
bindEditor(obj, bi => bi.InactiveText))
.End()
.End();
this.Content = form.Root;
}