黄学彪
2020-11-20 99253403b560f761d5f9af8b4f5140496996433a
ZigbeeApp/Shared/Phone/Common/Controls/NormalControls/LoadingControl.cs
old mode 100755 new mode 100644
File was renamed from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/LoadingControl.cs
@@ -1,45 +1,45 @@
using 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;
                    }
                }
            });
        }
    }
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Shared.Phone
{
    /// <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;
                    }
                }
            });
        }
    }
}