The Model part of the code:
Public class UcHDZCQViewModel: Screen
{
Public string MacConnectedStatus
{
The get
{
If (this. Service!=null & amp; & This. Service. TranService!=null & amp; & This. Service. TranService. IsConnected)
Return "connected";
Return "disconnect";
}
}
}
Below is the interface binding code
Problem description:
This. Service. TranService. IsConnected whether the object is a leap into the mouth open identity, IsConnected is read-only attribute, returns the serialPort class IsOpen property, why leap into mouth off the Label does not follow to update??
CodePudding user response:
Will no one to answer?