| | |
| | | |
| | | contentView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(527), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealHeight(527-10), |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | | if (string.IsNullOrEmpty(title)) |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddSecurity)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddSecurity)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | #region 布防信息 |
| | | var deploymentTitleRow = new FrameLayout() |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | new TopViewDiv(bodyView, title).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, title); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | securityAlarm.status = "enable"; |
| | | } |
| | | |
| | |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | | MaxWidth = Application.GetRealWidth(300), |
| | | Text = Language.StringByID(StringId.PleaseEnterSecurityName),// = "请输入安防名称", |
| | | CloseTime = 3, |
| | | Direction = AMPopTipDirection.None |
| | |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | | MaxWidth = Application.GetRealWidth(300), |
| | | Text = Language.StringByID(StringId.PleaseSelectTheDeploymentTarget),// "请选择布防目标", |
| | | CloseTime = 3, |
| | | Direction = AMPopTipDirection.None |
| | |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.NameCannotBeEmpty), |
| | | Direction = AMPopTipDirection.None, |
| | | MaxWidth = Application.GetRealWidth(300), |
| | | }.Show(bodyView); |
| | | return; |
| | | } |