| | |
| | | { |
| | | public class DoorlockDialog : FrameLayout |
| | | { |
| | | /// <summary> |
| | | /// 门锁弹窗 |
| | | /// </summary> |
| | | /// <param name="dialog"></param> |
| | | /// <param name="title"></param> |
| | | public DoorlockDialog(Dialog dialog, string title) |
| | | { |
| | | this.dialog = dialog; |
| | | this.title = title; |
| | | } |
| | | /// <summary> |
| | | /// 弹窗标题 |
| | | /// </summary> |
| | | public string title = string.Empty; |
| | | public Dialog dialog; |
| | | |
| | | /// <summary> |
| | | /// 弹窗取消按键 |
| | | /// 弹窗标题栏下的线条 |
| | | /// </summary> |
| | | public Button dialogLine = new Button |
| | | { |
| | |
| | | }; |
| | | |
| | | /// <summary> |
| | | /// 阴影部分 |
| | | /// 弹窗阴影背景 |
| | | /// </summary> |
| | | public FrameLayout flMain = new FrameLayout |
| | | { |
| | | BackgroundColor = 0x00000000, |
| | | }; |
| | | |
| | | /// <summary> |
| | | /// 弹窗显示 |
| | | /// </summary> |
| | | public void Show() |
| | | { |
| | | dialog.Show(); |
| | |
| | | Y = Application.GetRealHeight(691 - 184), |
| | | X = Application.GetRealWidth(144), |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMWhite, |
| | | Radius = 6, |
| | | Radius = (uint)Application.GetRealHeight(17), |
| | | }; |
| | | flMain.AddChidren(dialogFrameLayout); |
| | | |
| | |
| | | Height = Application.GetRealHeight(128) - 1, |
| | | Y = Application.GetRealHeight(380) + 1, |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMMidFrameLayout, |
| | | Radius = 6, |
| | | Radius = (uint)Application.GetRealHeight(17), |
| | | }; |
| | | |
| | | var r2FrameLayout = new FrameLayout |
| | |
| | | X = Application.GetRealWidth(397), |
| | | Y = Application.GetRealHeight(380) + 1, |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | Radius = 6, |
| | | Radius = (uint)Application.GetRealHeight(17), |
| | | }; |
| | | dialogFrameLayout.AddChidren(rFrameLayout0); |
| | | dialogFrameLayout.AddChidren(rFrameLayout1); |