页面逻辑调整
This commit is contained in:
@@ -173,12 +173,11 @@ namespace 头罩视野.Views
|
||||
_binocularTotalArea = 0;
|
||||
maxBottomViewAngle = 0;
|
||||
|
||||
isLeftOnly = btnLeft.Content.ToString() == "左眼开" && btnRight.Content.ToString() == "右眼关";
|
||||
isRightOnly = btnRight.Content.ToString() == "右眼开" && btnLeft.Content.ToString() == "左眼关";
|
||||
isBinocular = btnLeft.Content.ToString() == "左眼开" && btnRight.Content.ToString() == "右眼开";
|
||||
|
||||
|
||||
isLeftOnly = btnLeft.Content.ToString() == "左眼关" && btnRight.Content.ToString() == "右眼开";
|
||||
isRightOnly = btnRight.Content.ToString() == "左眼开" && btnLeft.Content.ToString() == "右眼关";
|
||||
isBinocular = btnLeft.Content.ToString() == "左眼关" && btnRight.Content.ToString() == "右眼关";
|
||||
|
||||
System.Diagnostics.Debug.WriteLine($"灯条数据:{isLeftOnly}1111{isRightOnly}11111{isBinocular}");
|
||||
await calCurrentangle();
|
||||
|
||||
_nextTargetAngle = _stepAngle;
|
||||
@@ -547,10 +546,10 @@ namespace 头罩视野.Views
|
||||
//复位btn
|
||||
private void Button_Click_Reset(object sender, RoutedEventArgs e)
|
||||
{
|
||||
btnLeft.Content = "左眼开";
|
||||
btnRight.Content = "右眼开";
|
||||
LedOff(led1);
|
||||
LedOff(led0);
|
||||
//btnLeft.Content = "左眼开";
|
||||
//btnRight.Content = "右眼开";
|
||||
//LedOff(led1);
|
||||
//LedOff(led0);
|
||||
ma.BtnClickFunction(Function.ButtonType.复归型, 90);
|
||||
}
|
||||
//左开眼
|
||||
@@ -669,7 +668,6 @@ namespace 头罩视野.Views
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
|
||||
System.Diagnostics.Debug.WriteLine("页面加载了!112222222");
|
||||
_timer.Start();
|
||||
ma = new Function(_modbusMaster);
|
||||
|
||||
Reference in New Issue
Block a user