| | |
| | | this.Width = Application.GetRealWidth(968);
|
| | | this.Gravity = Gravity.CenterHorizontal;
|
| | | this.BackgroundColor = UserCenterColor.Current.White;
|
| | | this.Radius = 8;
|
| | | this.Radius = (uint)Application.GetRealHeight(17);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | btnStatu.TextID = R.MyInternationalizationString.uStatu;
|
| | | this.AddChidren(btnStatu);
|
| | | //线
|
| | | var btnLine = new NormalViewControl(Application.GetRealWidth(876), 2, false);
|
| | | var btnLine = new NormalViewControl(Application.GetRealWidth(876), ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | btnLine.X = Application.GetRealWidth(46);
|
| | | btnLine.Y = Application.GetRealHeight(104);
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | string strMsg = reportInfo.AlarmMsg;
|
| | | if (reportInfo.DemolishmenMsg != null)
|
| | | {
|
| | | //被拆报警
|
| | | strMsg = reportInfo.DemolishmenMsg;
|
| | | }
|
| | | else if (reportInfo.BatteryMsg != null)
|
| | | {
|
| | | //电池报警
|
| | | strMsg = reportInfo.BatteryMsg;
|
| | | }
|
| | | if (strMsg == null || strMsg == string.Empty)
|
| | | {
|
| | | //不是在册的报警消息
|
| | | return;
|
| | | }
|
| | |
|
| | | //在线状态的控件隐藏
|
| | | btnOnline.Visible = false;
|
| | |
|
| | |
| | | btnMsg.Y = Application.GetRealHeight(141);
|
| | | this.AddChidren(btnMsg);
|
| | | }
|
| | | if (reportInfo.DemolishmenMsg != null)
|
| | | {
|
| | | btnMsg.Text = reportInfo.DemolishmenMsg;
|
| | | }
|
| | | else if (reportInfo.BatteryMsg != null)
|
| | | {
|
| | | btnMsg.Text = reportInfo.BatteryMsg;
|
| | | }
|
| | | else
|
| | | {
|
| | | btnMsg.Text = reportInfo.AlarmMsg;
|
| | | }
|
| | | btnMsg.Text = strMsg;
|
| | | }
|
| | |
|
| | | #endregion
|