wxr
2022-09-02 c207cd8df8a432d044bbc9e0da7f05d200769ef1
HDL_ON/Entity/Function/InverterInfo.cs
@@ -1,8 +1,63 @@
using System;
using System.Collections.Generic;
using HDL_ON.UI.UI2;
using Shared;
namespace HDL_ON.Entity
{
    public class Inverter
    {
        static Inverter _control;
        public static Inverter Ins
        {
            get
            {
                if (_control == null)
                {
                    _control = new Inverter();
                }
                return _control;
            }
        }
        WebView _h5Page;
        string showPageUrl = "";
        public WebView H5Page
        {
            get
            {
                if(_h5Page == null)
                {
                    _h5Page = new WebView();
                    //_h5Page.CallJS("action('back')");
                }
                return _h5Page;
            }
            set
            {
                _h5Page = value;
            }
        }
        /// <summary>
        /// 加载指定Url的webview
        /// </summary>
        /// <param name="showUrl"></param>
        public void ShowWebviewFormUrl(string showUrl)
        {
            if(showUrl == showPageUrl)
            {
                return;
            }
            showPageUrl = showUrl;
            _h5Page.LoadFileUrl(showPageUrl);
        }
    }
    /// <summary>
   /// 光伏数据
   /// </summary>