From 981ccd4afab6271422d7f169b30a2efa55eafde1 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 26 二月 2021 16:18:16 +0800
Subject: [PATCH] Merge branch 'WJC' into temp-wxr

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/FailView.cs |   65 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/FailView.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/FailView.cs
new file mode 100644
index 0000000..f224e9d
--- /dev/null
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/FailView.cs
@@ -0,0 +1,65 @@
+锘縰sing System;
+using HDL_ON.UI.UI2.Intelligence.Automation.LogicView;
+using Shared;
+namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice.View
+{
+    public class FailView
+    {
+        public void ShouError(Action<Dialog> action)
+        {
+            Dialog dialog = new Dialog();
+            #region 鐣岄潰甯冨眬
+            dialog.BackgroundColor = CSS.CSS_Color.viewMiddle;
+            PirDevice.View.TopView topView = new View.TopView();
+            topView.topNameBtn.TextID = StringId.tianjiayaokongqi;
+            dialog.AddChidren(topView.FLayoutView());
+            topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { dialog.Close(); };
+
+            FrameLayout fLayout = new FrameLayout
+            {
+                Y = Application.GetRealHeight(64),
+                BackgroundColor = CSS.CSS_Color.textWhiteColor,
+                Height = Application.GetRealHeight(667-64),
+                Width = Application.GetRealWidth(375),
+            };
+            dialog.AddChidren(fLayout);
+
+            //鍥炬爣
+            Button iconBtn = new Button
+            {
+                Y = Application.GetRealHeight(106),
+                X = Application.GetRealWidth(98),
+                Width = Application.GetRealWidth(180),
+                Height = Application.GetRealWidth(180),
+                UnSelectedImagePath = "PirIcon/failed.png",
+            };
+            fLayout.AddChidren(iconBtn);
+
+            //娣诲姞澶辫触
+            Button text1Btn = new Button
+            {
+                Width = Application.GetRealWidth(375 - 32),
+                Height = Application.GetRealHeight(22),
+                Y = Application.GetRealHeight(302),
+                X = Application.GetRealWidth(16),
+                TextID = StringId.tianjiashibai,
+                TextSize = TextSize.text16,
+                TextColor = CSS.CSS_Color.textRedColor,
+                TextAlignment = TextAlignment.Center,
+            };
+            fLayout.AddChidren(text1Btn);
+            //閲嶈瘯
+            View.SaveView saveView = new View.SaveView();
+            dialog.AddChidren(saveView.FLayoutView());
+            saveView.btnSave.TextID = StringId.chongshii;
+            saveView.frameLayout.BackgroundColor = CSS.CSS_Color.viewLine;
+            saveView.frameLayout.SetCornerWithSameRadius(Application.GetRealHeight(24), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
+            dialog.Show();
+            saveView.btnClick.MouseUpEventHandler += (sender,e) => {
+                action(dialog);
+            };
+            #endregion
+
+        }
+    }
+}

--
Gitblit v1.8.0