From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 25 十二月 2019 11:21:06 +0800
Subject: [PATCH] 2019.12.25

---
 ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedListRoomForm.cs |   19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedListRoomForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedListRoomForm.cs
index 1a76109..5e39b80 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedListRoomForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedListRoomForm.cs
@@ -199,26 +199,12 @@
                     frameTemp.Height = bodyFrameLayout.Height - btnShard.Y;
                     listView.AddChidren(frameTemp);
                 }
-                if (listView.ChildrenCount == 0)
+                if (listDataRoom.Count == 0)
                 {
                     //濡傛灉娌℃湁鑳藉鍏变韩鐨勬埧闂�
                     bodyFrameLayout.RemoveAll();
-
-                    //鍥剧墖
-                    var btnPic = new PicViewControl(383, 279);
-                    btnPic.Gravity = Gravity.CenterHorizontal;
-                    btnPic.Y = Application.GetRealHeight(498);
-                    btnPic.UnSelectedImagePath = "Item/NotShardPic.png";
-                    bodyFrameLayout.AddChidren(btnPic);
-
                     //鏃犲彲鍏变韩鐨勬埧闂�
-                    var btnMsg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
-                    btnMsg1.Y = Application.GetRealHeight(962);
-                    btnMsg1.TextAlignment = TextAlignment.Center;
-                    btnMsg1.TextSize = 12;
-                    btnMsg1.TextColor = UserCenterColor.Current.TextGrayColor1;
-                    btnMsg1.TextID = R.MyInternationalizationString.uNotShardDeviceInAllRoomMsg;
-                    bodyFrameLayout.AddChidren(btnMsg1);
+                    this.ShowNotDataImage(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uNotCanShardRoomMsg), "Item/NotShardPic.png", 383, 279);
                 }
             });
         }
@@ -249,7 +235,6 @@
                 var form = new AddNewSharedContentForm();
                 form.AddForm(room, memberShardInfo);
             };
-
 
             //閫夋嫨
             var btnSelect = row.AddMostRightEmptyIcon(69, 69);

--
Gitblit v1.8.0