| | |
| | | using System; |
| | | using Shared.Common; |
| | | |
| | | using ZigBee.Device;
|
| | |
|
| | | namespace Shared.Phone.Device.CommonForm |
| | | { |
| | | public class CategoryFunctionForWinRow:FrameLayout |
| | |
| | | /// Init |
| | | /// </summary> |
| | | /// <param name="device"></param> |
| | | public void Init(DeviceUI device) |
| | | public void Init(CommonDevice device) |
| | | { |
| | | ImageBG = new Button() |
| | | { |
| | |
| | | AddChidren(OpenOrUpBtn); |
| | | OpenOrUpBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | (device.CommonDevice as ZigBee.Device.Rollershade).CurtainUpDownStopControl(0); |
| | | (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(0); |
| | | }; |
| | | |
| | | StopBtn = new Button |
| | |
| | | AddChidren(StopBtn); |
| | | StopBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | (device.CommonDevice as ZigBee.Device.Rollershade).CurtainUpDownStopControl(2); |
| | | (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(2); |
| | | }; |
| | | |
| | | CloseOrDownBtn = new Button |
| | |
| | | AddChidren(CloseOrDownBtn); |
| | | CloseOrDownBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | (device.CommonDevice as ZigBee.Device.Rollershade).CurtainUpDownStopControl(1); |
| | | (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(1); |
| | | }; |
| | | |
| | | var line = new Button() |