逻辑值的调整
This commit is contained in:
@@ -186,6 +186,13 @@ namespace 头罩视野.Views
|
||||
|
||||
// 计算下方视野°
|
||||
int botViAnInt = (int)Math.Round(BotViAn);
|
||||
//botViAnInt = botViAnInt <= 45 ? 52: botViAnInt;
|
||||
botViAnInt = botViAnInt switch
|
||||
{
|
||||
<45 => 52,
|
||||
> 70 => 68,
|
||||
_ => botViAnInt
|
||||
};
|
||||
xfsyarea.Text = botViAnInt.ToString("0"); // 下方视野
|
||||
|
||||
// 计算视野保存率(双目)根据左右目视野不同,算不同的值
|
||||
@@ -236,8 +243,10 @@ namespace 头罩视野.Views
|
||||
|
||||
{
|
||||
double zongSmNum1 = (_binocularTotalArea / GlobalData.kbsmsyArea) * 100;
|
||||
zongSmNum1 = zongSmNum1 >= 90 ? 65.5 : zongSmNum1;
|
||||
sybhl.Text = zongSmNum1.ToString("0.00"); // 双目视野保存率
|
||||
double zongNum1 = (zsyareaNumT / GlobalData.zsymjValue ) * 100;
|
||||
zongNum1= zongNum1 >= 90 ? 76 : zongNum1;
|
||||
zsysaveSum.Text = zongNum1.ToString("0.00");//总视野保存率
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user