/// <summary>
        /// 当前页面跳转
        /// </summary>
        /// <param name="windowCode">窗口编号</param>
        void go(string windowCode)
        {
            Helper.Remote.Invoke <ControlWindow>("GetWindowInfo", (win, err) => {
                if (err != null)
                {
                    MessageBox.Show(this.GetParentByName <Window>(null), err);
                }
                else
                {
                    this._visitHistories.Add(_dataModel);

                    foreach (var client in _clients)
                    {
                        client.Released = true;
                        client.NetClient.Close();
                    }
                    _clients.Clear();

                    _dataModel     = win;
                    _gecko.Enabled = false;

                    _gecko.Navigate($"{Helper.Config.ServerUrl}/Home/GetWindowContent?windowCode={windowCode}");
                }
            }, 0, windowCode);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="parent">如果不是新建的窗口,此参数可以为空</param>
        /// <param name="dataModel"></param>
        /// <param name="isRunMode"></param>
        internal ControlWindowDocument(ControlWindowContainerNode parent, SunRizServer.ControlWindow dataModel, bool isRunMode)
        {
            IsRunMode  = isRunMode;
            _dataModel = dataModel ?? new SunRizServer.ControlWindow()
            {
                ControlUnitId = parent._controlUnitId,
                FolderId      = parent._folderId,
            };
            _parentNode = parent;
            InitializeComponent();

            this.Title = "初始化...";
            this.init();
        }
        /// <summary>
        /// 返回上一个页面
        /// </summary>
        void goBack(string p)
        {
            if (_visitHistories.Count > 0)
            {
                var win = _visitHistories.Last();
                _visitHistories.RemoveAt(_visitHistories.Count - 1);

                foreach (var client in _clients)
                {
                    client.Released = true;
                    client.NetClient.Close();
                }
                _clients.Clear();

                _dataModel     = win;
                _gecko.Enabled = false;
                _gecko.Navigate($"{Helper.Config.ServerUrl}/Home/GetWindowContent?windowid={win.id}");
            }
        }