| | |
| | | /// <summary>
|
| | | /// 安防管理主页的控件
|
| | | /// </summary>
|
| | | public class SafetyMasterControl : FrameLayout
|
| | | public class SafetyMasterControl : NormalFrameLayout
|
| | | {
|
| | | #region ■ 变量声明___________________________
|
| | |
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //根据布防模式,设置图标的选择状态
|
| | | this.SetIconStatuByGarrisonMode(mode);
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //根据布防模式,设置图标的选择状态
|
| | | this.SetIconStatuByGarrisonMode(mode);
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //根据布防模式,设置图标的选择状态
|
| | | this.SetIconStatuByGarrisonMode(GarrisonMode.RemoveGarrison);
|
| | |
| | | //没必要再初始化界面
|
| | | return;
|
| | | }
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //清空全部控件
|
| | | this.RemoveAll();
|
| | |
| | | btnBack.Gravity = Gravity.CenterHorizontal;
|
| | | btnBack.Radius = (uint)backHeight / 2;
|
| | | btnBack.BackgroundColor = UserCenterColor.Current.BodyFrameLayout;
|
| | | this.AddChidren(btnBack, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnBack, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //图标
|
| | | btnIcon = new IconViewControl(81);
|
| | | btnIcon.Y = Application.GetRealHeight(26);
|
| | | btnIcon.Gravity = Gravity.CenterHorizontal;
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //文本
|
| | | btnText = new NormalViewControl(this.Width, Application.GetRealHeight(58), false);
|