| | |
| | | }; |
| | | DeviceRowView.AddChidren (tempSwitch); |
| | | if (udDevice.ActionType == 0) { |
| | | tempSwitch.Text = udDevice.ON_Text; |
| | | //tempSwitch.TextID = R.MyInternationalizationString.ON; |
| | | //tempSwitch.Text = udDevice.ON_Text; |
| | | tempSwitch.TextID = R.MyInternationalizationString.ON; |
| | | } else if (udDevice.ActionType == 1) { |
| | | tempSwitch.Text = udDevice.OFF_Text; |
| | | //tempSwitch.TextID = R.MyInternationalizationString.OFF; |
| | | //tempSwitch.Text = udDevice.OFF_Text; |
| | | tempSwitch.TextID = R.MyInternationalizationString.OFF; |
| | | } else if (udDevice.ActionType == 2) { |
| | | tempSwitch.Text = udDevice.OFF_Text; |
| | | //tempSwitch.TextID = R.MyInternationalizationString.OFF; |
| | | //tempSwitch.Text = udDevice.OFF_Text; |
| | | tempSwitch.TextID = R.MyInternationalizationString.OFF; |
| | | |
| | | Button tempON = new Button () { |
| | | Width = Application.GetRealWidth (110), |
| | |
| | | DeviceRowView.BorderColor = SkinStyle.Current.SelectedColor; |
| | | tempON.BorderColor = SkinStyle.Current.SelectedColor; |
| | | }; |
| | | } |
| | | tempSwitch.MouseUpEventHandler += (sender3, e3) => { |
| | | if (udDevice.UniversalType == 0xE01C) { |
| | | if (udDevice.ActionType == 0) { |
| | |
| | | DeviceRowView.BorderColor = SkinStyle.Current.SelectedColor; |
| | | tempSwitch.BorderColor = SkinStyle.Current.SelectedColor; |
| | | }; |
| | | } |
| | | |
| | | #endregion |
| | | } else if (devcieCommon.Type.ToString ().Contains ("Sensor")) { |
| | | #region 传感器 |