| | |
| | | itemView.AddChidren(OpenOrUpBtn); |
| | | OpenOrUpBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | (device.CommonDevice as ZigBee.Device.Rollershade).CurtainUpDownStopControl(0); |
| | | (device.CommonDevice as Rollershade).CurtainUpDownStopControl(0); |
| | | }; |
| | | |
| | | StopBtn = new Button |
| | |
| | | itemView.AddChidren(StopBtn); |
| | | StopBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | (device.CommonDevice as ZigBee.Device.Rollershade).CurtainUpDownStopControl(2); |
| | | (device.CommonDevice as Rollershade).CurtainUpDownStopControl(2); |
| | | }; |
| | | |
| | | CloseOrDownBtn = new Button |
| | |
| | | itemView.AddChidren(CloseOrDownBtn); |
| | | CloseOrDownBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | (device.CommonDevice as ZigBee.Device.Rollershade).CurtainUpDownStopControl(1); |
| | | (device.CommonDevice as Rollershade).CurtainUpDownStopControl(1); |
| | | }; |
| | | |
| | | SetRollerShadeIcon((device.CommonDevice as Rollershade).WcdType); |