From 993ecf49ae04ccea89f6bc4a32cfc0c45def1215 Mon Sep 17 00:00:00 2001
From: 温居城 <wenjucheng@wenjuchengdeMacBook-Pro.local>
Date: 星期三, 27 十月 2021 14:23:30 +0800
Subject: [PATCH] 2021-10-27-01
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/LoadingControl.cs | 90 ++++++++++++++++++++++----------------------
1 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/LoadingControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/LoadingControl.cs
old mode 100755
new mode 100644
index 979d63f..aa29618
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/LoadingControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/LoadingControl.cs
@@ -1,45 +1,45 @@
-锘縰sing System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Shared.Phone.UserCenter
-{
- /// <summary>
- /// Loading鎺т欢
- /// </summary>
- public class LoadingControl : Button
- {
- /// <summary>
- /// 鍒濆鍖�
- /// </summary>
- public LoadingControl()
- {
- this.Width = Application.GetMinRealAverage(74);
- this.Height = Application.GetMinRealAverage(76);
- }
-
- /// <summary>
- /// 寮�鍚姩鐢绘晥鏋�
- /// </summary>
- public void StartAction()
- {
- HdlThreadLogic.Current.RunThread(() =>
- {
- int index = 1;
- while (this.Parent != null)
- {
- System.Threading.Thread.Sleep(50);
- Application.RunOnMainThread(() =>
- {
- this.UnSelectedImagePath = "Loading/" + index + ".png";
- });
- index++;
- if (index > 32)
- {
- index = 1;
- }
- }
- });
- }
- }
-}
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Shared.Phone.UserCenter
+{
+ /// <summary>
+ /// Loading鎺т欢
+ /// </summary>
+ public class LoadingControl : Button
+ {
+ /// <summary>
+ /// 鍒濆鍖�
+ /// </summary>
+ public LoadingControl()
+ {
+ this.Width = HdlControlLogic.Current.GetPictrueRealSize(74);
+ this.Height = HdlControlLogic.Current.GetPictrueRealSize(76);
+ }
+
+ /// <summary>
+ /// 寮�鍚姩鐢绘晥鏋�
+ /// </summary>
+ public void StartAction()
+ {
+ HdlThreadLogic.Current.RunThread(() =>
+ {
+ int index = 1;
+ while (this.Parent != null)
+ {
+ System.Threading.Thread.Sleep(50);
+ HdlThreadLogic.Current.RunMain(() =>
+ {
+ this.UnSelectedImagePath = "Loading/" + index + ".png";
+ }, ShowErrorMode.NO);
+ index++;
+ if (index > 32)
+ {
+ index = 1;
+ }
+ }
+ });
+ }
+ }
+}
--
Gitblit v1.8.0