黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs
@@ -28,6 +28,8 @@
        {
            //将当前的画面保存到内存当中
            UserCenterLogic.AddActionForm(this);
            //Log出力
            HdlLogLogic.Current.WriteLog(1, this.FormID + " 界面打开");
        }
        /// <summary>
@@ -74,6 +76,9 @@
        /// </summary>
        public virtual void CloseForm()
        {
            //Log出力
            HdlLogLogic.Current.WriteLog(1, this.FormID + " 界面关闭");
            //移除接受在线状态推送
            this.RemoveGatewayOnlinePush();
            //移除设备属性变更推送
@@ -88,7 +93,6 @@
            //从列表中移除(防止画面二重添加)
            UserCenterLogic.RemoveActionForm(this);
        }
        /// <summary>
@@ -267,8 +271,21 @@
                {
                    alert.ConfirmClickEvent += () =>
                    {
                        //回调函数
                        action?.Invoke();
                        try
                        {
                            //回调函数
                            action?.Invoke();
                        }
                        catch (Exception ex)
                        {
                            //出现未知错误,数据丢失
                            this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost));
                            //Log出力
                            string errorMsg = ex.Message + "\r\n";
                            errorMsg += ex.TargetSite.ToString();
                            HdlLogLogic.Current.WriteLog(-1, errorMsg);
                        }
                        action = null;
                    };
                }
@@ -357,9 +374,13 @@
            }
            catch (Exception ex)
            {
                //出现未知错误,数据丢失
                this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost));
                //Log出力
                string msg = ex.Message + "\r\n";
                msg += ex.TargetSite.ToString();
                this.ShowMassage(ShowMsgType.Error, msg);
                HdlLogLogic.Current.WriteLog(-1, msg);
                return null;
            }
@@ -382,11 +403,12 @@
        #region ■ 界面重新激活事件___________________
        /// <summary>
        /// 自身的上层界面关闭后,它自身处于最上层时,触发的事件
        /// <para>自身的上层界面关闭后,它自身处于最上层时,触发的事件</para>
        /// <para>重写的时候返回值请返回1(返回值是给底层使用的)</para>
        /// </summary>
        public virtual void FormActionAgainEvent()
        public virtual int FormActionAgainEvent()
        {
            return;
            return -1;
        }
        #endregion