From 7d005a7618e3d7a80d8ede3baf6ecc4bf8019cd5 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 01 九月 2020 15:22:09 +0800 Subject: [PATCH] 2020-09-01 --- HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs index 94c5722..6da5522 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs @@ -58,7 +58,7 @@ { try { - (fcView.GetChildren(j) as Button).IsSelected = updataFunction.on_off == "on"; + (fcView.GetChildren(j) as Button).IsSelected = updataFunction.trait_on_off.value.ToString() == "on"; } catch (Exception ex) { @@ -71,7 +71,7 @@ { try { - if (updataFunction.on_off == "on") + if (updataFunction.trait_on_off.value.ToString() == "on") { (fcView.GetChildren(j) as DiyImageSeekBar).Progress = (updataFunction as Light).brightness; (fcView.GetChildren(j) as DiyImageSeekBar).ProgressBarColor = CSS.CSS_Color.AuxiliaryColor1; @@ -93,7 +93,7 @@ { try { - (fcView.GetChildren(j) as Button).IsSelected = updataFunction.on_off == "on"; + (fcView.GetChildren(j) as Button).IsSelected = updataFunction.trait_on_off.value.ToString() == "on"; (fcView.GetChildren(j) as Button).Text = updataFunction.lastState; } catch (Exception ex) @@ -110,7 +110,7 @@ { try { - (fcView.GetChildren(j) as Button).IsSelected = uCurtain.on_off == "off"; + (fcView.GetChildren(j) as Button).IsSelected = uCurtain.trait_on_off.value.ToString() == "off"; } catch (Exception ex) { @@ -121,7 +121,7 @@ { try { - (fcView.GetChildren(j) as Button).IsSelected = uCurtain.on_off == "on"; + (fcView.GetChildren(j) as Button).IsSelected = uCurtain.trait_on_off.value.ToString() == "on"; } catch (Exception ex) { -- Gitblit v1.8.0