src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardIOStatus.cs
@@ -45,6 +45,7 @@ { if (ctr is IOIndicatorCtrl ioOut) { ioOut.Cursor = Cursors.Hand; ioOut.OnIODoubleClick += IoOut_DoubleClick; } } @@ -53,7 +54,7 @@ private void IoOut_DoubleClick(string desc, bool isOn) { var index = Convert.ToInt16(desc.Substring(3)); MotionCard.WriteOutput(index, isOn ? IOValue.FALSE : IOValue.TRUE); MotionCard.WriteOutput(index, isOn ? IOValue.TRUE : IOValue.FALSE); } private void RefreshIOStatus(object sender, EventArgs e) @@ -79,6 +80,8 @@ } } } this.Invalidate(); } } }