old mode 100755
new mode 100644
| | |
| | | ///添加自动化图标的控件 |
| | | var addIconBtn = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(69), |
| | | Height = Application.GetMinRealAverage(69), |
| | | Width = Application.GetRealWidth(69), |
| | | Height = Application.GetRealWidth(69), |
| | | X = Application.GetRealWidth(890), |
| | | Y = Application.GetRealHeight(60), |
| | | UnSelectedImagePath = "ZigeeLogic/add.png", |
| | |
| | | { |
| | | X = Application.GetRealWidth(395), |
| | | Y = Application.GetRealHeight(92), |
| | | Width = Application.GetMinRealAverage(294), |
| | | Height = Application.GetMinRealAverage(294), |
| | | Width = Application.GetRealWidth(294), |
| | | Height = Application.GetRealWidth(294), |
| | | }; |
| | | fLayout.AddChidren(modeIconBtn); |
| | | if (Send.CurrentDoorLock.IsDoorLockNormallyMode) |
| | |
| | | ///下一级菜单图标控件 |
| | | var nextIconBtn = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(104), |
| | | Height = Application.GetMinRealAverage(104), |
| | | Width = Application.GetRealWidth(104), |
| | | Height = Application.GetRealWidth(104), |
| | | X = Application.GetRealWidth(861), |
| | | Y = Application.GetRealHeight(17), |
| | | UnSelectedImagePath = "ZigeeLogic/nextIconSone.png", |
| | |
| | | ///显示目标功能背景颜色的控件 |
| | | var typeBjBtn = new FrameLayout |
| | | { |
| | | Width = Application.GetMinRealAverage(82), |
| | | Height = Application.GetMinRealAverage(82), |
| | | Width = Application.GetRealWidth(82), |
| | | Height = Application.GetRealWidth(82), |
| | | X = Application.GetRealWidth(17), |
| | | Y = Application.GetRealHeight(84), |
| | | Radius = (uint)Application.GetMinRealAverage(41), |
| | |
| | | ///显示目标功能图标的控件 |
| | | var typeIconBtn = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(58), |
| | | Height = Application.GetMinRealAverage(58), |
| | | Width = Application.GetRealWidth(58), |
| | | Height = Application.GetRealWidth(58), |
| | | Gravity = Gravity.Center, |
| | | }; |
| | | typeBjBtn.AddChidren(typeIconBtn); |
| | | ///逻辑开关图标的控件 |
| | | var switchBtn = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(104), |
| | | Height = Application.GetMinRealAverage(63), |
| | | Width = Application.GetRealWidth(104), |
| | | Height = Application.GetRealWidth(63), |
| | | UnSelectedImagePath = "ZigeeLogic/logicclose.png", |
| | | SelectedImagePath = "ZigeeLogic/logicopen.png", |
| | | X = Application.GetRealWidth(815), |
| | |
| | | ///删除点击事件 |
| | | del.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Confirm, |
| | | var alert = new UserCenter.ShowMsgControl(ShowMsgType.Confirm, |
| | | Language.StringByID(MyInternationalizationString.doyouwanttodelete), |
| | | Language.StringByID(MyInternationalizationString.confrim));
|
| | | alert.Show();
|