wjc
2022-10-13 fba3a6c55c4de790eaeee55f9897d668bb36dbb8
HDL_ON/Entity/Function/InverterInfo.cs
@@ -1,8 +1,66 @@
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>