From e53a1951d6aa07ad22aad9816da4703496fcbccd Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 27 十一月 2020 14:27:16 +0800
Subject: [PATCH] 1127最新合并代码,合并嘉乐更新
---
HDL_ON/UI/UI1-Login/SelectServerDialog.cs | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/HDL_ON/UI/UI1-Login/SelectServerDialog.cs b/HDL_ON/UI/UI1-Login/SelectServerDialog.cs
index 33b620f..2b262db 100644
--- a/HDL_ON/UI/UI1-Login/SelectServerDialog.cs
+++ b/HDL_ON/UI/UI1-Login/SelectServerDialog.cs
@@ -32,9 +32,9 @@
}
- /// <summary>
- ///
- /// </summary>
+ /// <summary>
+ ///
+ /// </summary>
public void LoadPage()
{
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
@@ -64,7 +64,8 @@
var waitPage = new Loading();
waitPage.Start("Please wait...");
- System.Threading.Tasks.Task.Run(() => {
+ System.Threading.Tasks.Task.Run(() =>
+ {
try
{
var dataList = new List<GlobalRegionListRes>();
@@ -72,7 +73,8 @@
var revertObj = HttpUtil.RequestHttpsPost(NewAPI.API_POST_GlobalRegionList, requestJson, HttpUtil.GlobalRequestHttpsHost);
if (revertObj.Code == StateCode.SUCCESS)
{
- Application.RunOnMainThread(() => {
+ Application.RunOnMainThread(() =>
+ {
var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<GlobalRegionListRes>>(revertObj.Data.ToString());
if (responseDataObj != null)
{
@@ -95,11 +97,12 @@
}
catch
{
-
+
}
finally
{
- Application.RunOnMainThread(() => {
+ Application.RunOnMainThread(() =>
+ {
waitPage.Hide();
});
}
@@ -120,7 +123,8 @@
};
VerticalScrolViewMiddle.AddChidren(rowView);
- var urlBtn = new Button() {
+ var urlBtn = new Button()
+ {
X = Application.GetRealWidth(16),
Height = rowView.Height,
Width = Application.GetRealWidth(200),
@@ -134,7 +138,8 @@
//rowView.AddChidren(lineView);
//lineView.Y = rowView.Height - lineView.Height;
- EventHandler<MouseEventArgs> eHandler = (sender, e) => {
+ EventHandler<MouseEventArgs> eHandler = (sender, e) =>
+ {
UserInfo.Current.RequestHttpsHost = mGlobalRegion.regionUrl;
UserInfo.Current.GlobalRegion = mGlobalRegion;
UserInfo.Current.SaveUserInfo();
--
Gitblit v1.8.0