From 18b93d511dc764b469d7c4a7e755f7274f89cdb4 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 27 四月 2020 17:55:14 +0800
Subject: [PATCH] 2020-4-27-1

---
 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayBackUpListForm.cs |   37 +++++++++++++++----------------------
 1 files changed, 15 insertions(+), 22 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayBackUpListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayBackUpListForm.cs
index 6eb6dbc..e334f30 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayBackUpListForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayBackUpListForm.cs
@@ -187,24 +187,17 @@
             listView.AddChidren(rowLayout);
 
             //澶囦唤鍚嶅瓧
-            var txtText = rowLayout.frameTable.AddLeftCaption(fileInfo.BackupName, 700, 60);
-            txtText.TextSize = 15;
-            txtText.Y = Application.GetRealHeight(12) + rowLayout.chidrenYaxis;
-            rowLayout.frameTable.AddChidren(txtText, ChidrenBindMode.BindEventOnly);
+            var txtText = rowLayout.frameTable.AddTopView(fileInfo.BackupName, 700);
             if (isAuto == true)
             {
                 txtText.TextID = R.MyInternationalizationString.uAutoBackup;
             }
 
             //鏃堕棿 2019-11-11T11:31:01
-            var btnTime = rowLayout.frameTable.AddLeftCaption("", 600, 50, true);
-            btnTime.Y = Application.GetRealHeight(72) + rowLayout.chidrenYaxis;
-            btnTime.TextSize = 12;
-            btnTime.TextColor = UserCenterColor.Current.TextGrayColor1;
-            rowLayout.frameTable.AddChidren(btnTime, ChidrenBindMode.BindEventOnly);
+            var btnTime = rowLayout.frameTable.AddBottomView("", 600);
             if (fileInfo.CreatedOnUtc.Length >= 19)
             {
-                btnTime.Text = fileInfo.CreatedOnUtc.Replace("-", ".").Replace("T", " ");
+                btnTime.Text = UserCenterLogic.ConvertUtcTimeToLocalTime(fileInfo.CreatedOnUtc).ToString("yyyy.MM.dd HH:mm:ss");
             }
             //搴曠嚎
             if (addLine == true)
@@ -245,20 +238,20 @@
                     //鏄剧ず缂栬緫澶囪�冨悕鐢婚潰
                     this.ShowEditorBackupForm(fileInfo);
                 };
-            }
 
-            //鍒犻櫎
-            var btnDelete = rowLayout.AddDeleteControl();
-            btnDelete.ButtonClickEvent += (sender, e) =>
-            {
-                //纭鍒犻櫎璇ュ浠芥暟鎹�?
-                string msg = Language.StringByID(R.MyInternationalizationString.uDoDeleteBackupMsg);
-                this.ShowMassage(ShowMsgType.Confirm, msg, () =>
+                //鍒犻櫎
+                var btnDelete = rowLayout.AddDeleteControl();
+                btnDelete.ButtonClickEvent += (sender, e) =>
                 {
-                    //鍒犻櫎澶囦唤鏂囨。
-                    this.DeleteBackInfo(fileInfo.Id);
-                });
-            };
+                    //纭鍒犻櫎璇ュ浠芥暟鎹�?
+                    string msg = Language.StringByID(R.MyInternationalizationString.uDoDeleteBackupMsg);
+                    this.ShowMassage(ShowMsgType.Confirm, msg, () =>
+                    {
+                        //鍒犻櫎澶囦唤鏂囨。
+                        this.DeleteBackInfo(fileInfo.Id);
+                    });
+                };
+            }
         }
 
         #endregion

--
Gitblit v1.8.0