| | |
| | | btnLine.BackgroundColor = 0x40000000; |
| | | btnLine.Y = topFrameLayout.Height - 1; |
| | | topFrameLayout.AddChidren(btnLine); |
| | | topFrameLayout.AddTag("btnLine", btnLine);
|
| | | |
| | | //返回键 |
| | | var btnBack = new BackViewControl(); |
| | |
| | | /// <param name="parameter">启动参数:参数由指定画面的ShowForm函数所指定</param>
|
| | | public override void AddForm(params object[] parameter)
|
| | | {
|
| | | //界面加载中
|
| | | ControlCommonResourse.IsFormAdding = true;
|
| | |
|
| | | base.AddForm(parameter);
|
| | |
|
| | | //检测能否追加画面 |
| | | if (UserCenterLogic.CheckCanAddForm(this) == false) |
| | | { |
| | | return; |
| | | } |
| | | //检测能否追加画面 2020.05.14舍弃 |
| | | //if (UserCenterLogic.CheckCanAddForm(this) == false) |
| | | //{ |
| | | // return; |
| | | //} |
| | | |
| | | UserView.HomePage.Instance.AddChidren(this);
|
| | | UserView.HomePage.Instance.PageIndex += 1;
|
| | |
| | |
|
| | | //执行ShowForm()方法
|
| | | this.LoadShowFormMethod(parameter);
|
| | |
|
| | | //界面加载结束
|
| | | ControlCommonResourse.IsFormAdding = false;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | this.m_parameter = null;
|
| | | //清空bodyFrame |
| | | this.ClearBodyFrame(); |
| | | } |
| | | }
|
| | |
|
| | | #endregion |
| | |
|
| | | #region ■ 添加帮助控件_______________________
|
| | |
|
| | | /// <summary>
|
| | | /// 添加查看帮助控件
|
| | | /// </summary>
|
| | | /// <returns></returns>
|
| | | public NormalViewControl AddHelpControl()
|
| | | {
|
| | | //查看帮助
|
| | | var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
|
| | | btnHelp.Y = Application.GetRealHeight(1388);
|
| | | btnHelp.TextSize = 12;
|
| | | btnHelp.TextAlignment = TextAlignment.Center;
|
| | | btnHelp.TextColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp);
|
| | | bodyFrameLayout.AddChidren(btnHelp);
|
| | | //底线
|
| | | int lineWidth = btnHelp.GetRealWidthByText();
|
| | | var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
|
| | | bodyFrameLayout.AddChidren(btnLine);
|
| | |
|
| | | return btnHelp;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 显示重新加载_______________________ |
| | | |
| | |
| | | {
|
| | | }
|
| | |
|
| | | #endregion |
| | |
|
| | | #region ■ 添加帮助控件_______________________ |
| | | |
| | | /// <summary>
|
| | | /// 添加查看帮助控件
|
| | | /// </summary>
|
| | | /// <returns></returns> |
| | | public NormalViewControl AddHelpControl()
|
| | | {
|
| | | //查看帮助
|
| | | var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
|
| | | btnHelp.Y = Application.GetRealHeight(1388);
|
| | | btnHelp.TextSize = 12;
|
| | | btnHelp.TextAlignment = TextAlignment.Center;
|
| | | btnHelp.TextColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp);
|
| | | bodyFrameLayout.AddChidren(btnHelp);
|
| | | //底线
|
| | | int lineWidth = btnHelp.GetRealWidthByText();
|
| | | var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
|
| | | bodyFrameLayout.AddChidren(btnLine);
|
| | |
|
| | | return btnHelp;
|
| | | } |
| | | |
| | | #endregion |
| | |
|
| | | #region ■ 显示没有数据的图像显示特效_________ |