Skip to content

Commit

Permalink
fix: 修复接收区[暂停/允许]显示异常
Browse files Browse the repository at this point in the history
  • Loading branch information
leven99 committed Sep 20, 2019
1 parent bca95ba commit 2336bfb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ViewModels/MainWindowVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,14 @@ public bool OpenSP()
SerialPortModel.SPStopBitsEnable = false;
SerialPortModel.SPParityEnable = false;

RecvModel.EnableRecv = "允许";
if (RecvModel.Enable_Recv)
{
RecvModel.EnableRecv = "允许";
}
else
{
RecvModel.EnableRecv = "暂停";
}
RecvModel.RecvHeader = "接收区:已接收" + RecvModel.RecvDataCount +
"字节,接收自动保存[" + RecvModel.RecvAutoSave + "],接收状态[" + RecvModel.EnableRecv + "]";

Expand Down Expand Up @@ -655,8 +662,6 @@ public bool SaveRecv
else
{
DepictInfo = "串行端口调试助手";
RecvModel.RecvAutoSave = "已停止";

}
}
}
Expand Down Expand Up @@ -878,6 +883,9 @@ public void Enable_Recv()
{
RecvModel.EnableRecv = "暂停";
}

RecvModel.RecvHeader = "接收区:已接收" + RecvModel.RecvDataCount +
"字节,接收自动保存[" + RecvModel.RecvAutoSave + "],接收状态[" + RecvModel.EnableRecv + "]";
}
#endregion

Expand Down

0 comments on commit 2336bfb

Please sign in to comment.