陈嘉乐
2020-12-03 0f2e0147e8990e913d16d99bc1b94fb6bc53abd7
HDL_ON/UI/UI1-Login/RegisterPageBLL.cs
@@ -604,15 +604,19 @@
        /// </summary>
        void LoadEvent_Server()
        {
            //判断之前是否选择过
            if (UserInfo.Current.GlobalRegion != null && !string.IsNullOrEmpty(UserInfo.Current.GlobalRegion.regionUrl))
            {
                SetServerText();
            }
            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
            {
                Action selectAction = () =>
                {
                    //服务器选择过标记为true
                    isSelectServer = true;
                    ShowServerBottomLineState(false);
                    btnServerText.TextColor = CSS_Color.FirstLevelTitleColor;
                    btnServerText.Text = UserInfo.Current.GlobalRegion.regionName;
                    SetServerText();
                };
                new SelectServerDialog(selectAction).LoadPage();
@@ -655,5 +659,17 @@
                btnServerBottomLine.Height = Application.GetRealHeight(1);
            }
        }
        /// <summary>
        ///
        /// </summary>
        void SetServerText()
        {
            //服务器选择过标记为true
            isSelectServer = true;
            ShowServerBottomLineState(false);
            btnServerText.TextColor = CSS_Color.FirstLevelTitleColor;
            btnServerText.Text = UserInfo.Current.GlobalRegion.regionName;
        }
    }
}