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