| | |
| | | }
|
| | | }
|
| | | }
|
| | | /// <summary>
|
| | | /// 处于非选中状态时,是否把字体变成灰色(默认变成灰色)
|
| | | /// </summary>
|
| | | public bool ChangedTextColor = true;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | /// <summary>
|
| | | /// 初始化内部控件
|
| | | /// </summary>
|
| | | public void InitControl()
|
| | | /// <param name="iconParh">左侧图标</param>
|
| | | public void InitControl(string iconParh = "")
|
| | | {
|
| | | //图片
|
| | | if (iconParh != "")
|
| | | {
|
| | | var btnIcon = this.AddLeftIcon();
|
| | | btnIcon.UnSelectedImagePath = iconParh;
|
| | | }
|
| | | //显示文本
|
| | | btnText = this.AddLeftCaption(this.textValue, 600);
|
| | | btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | |
| | | return;
|
| | | }
|
| | | btnSelect.Visible = true;
|
| | | btnText.TextColor = UserCenterColor.Current.TextColor1;
|
| | | if (this.ChangedTextColor == true)
|
| | | {
|
| | | btnText.TextColor = UserCenterColor.Current.TextColor1;
|
| | | }
|
| | | //状态变更
|
| | | Statu = StatuMode.SELECT;
|
| | | }
|
| | |
| | | return;
|
| | | }
|
| | | btnSelect.Visible = false;
|
| | | btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | if (this.ChangedTextColor == true)
|
| | | {
|
| | | btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | }
|
| | | //状态变更
|
| | | Statu = StatuMode.UN_SELECT;
|
| | | }
|