duheng
2024-07-18 7bf79c6515f27ba9be8d2b3fb4e3ceae5718e3e5
WinFrmUI/Yw.WinFrmUI.Core/06-document/DocumentPage.cs
@@ -6,7 +6,7 @@
    public partial class DocumentPage : DevExpress.XtraEditors.XtraUserControl
    {
        /// <summary>
        ///
        ///
        /// </summary>
        public DocumentPage()
        {
@@ -15,13 +15,12 @@
        }
        /// <summary>
        ///
        ///
        /// </summary>
        public DocumentPage(PageGuid pguid) : this()
        {
            this.PageGuid = pguid;
        }
        /// <summary>
        /// 根据字符串判断Document是否存在,
@@ -118,6 +117,11 @@
        public event Action<PageGuid> ClosePageEvent;
        /// <summary>
        /// 重置所有Page事件
        /// </summary>
        public event Action ResetAllPagesEvent;
        /// <summary>
        /// 关闭page
        /// </summary>
        /// <param name="sguid"></param>
@@ -125,7 +129,6 @@
        {
            this.ClosePageEvent?.Invoke(sguid);
        }
        /// <summary>
        /// 头部部分
@@ -142,7 +145,11 @@
        /// </summary>
        public virtual void InitialDataSource()
        {
        }
        protected void ResetAllPages()
        {
            this.ResetAllPagesEvent?.Invoke();
        }
        /// <summary>
@@ -150,7 +157,6 @@
        /// </summary>
        public virtual void RefreshData()
        {
        }
        /// <summary>
@@ -158,7 +164,6 @@
        /// </summary>
        public virtual void Close()
        {
        }
        /// <summary>
@@ -170,11 +175,18 @@
        }
        /// <summary>
        /// 是否允许关闭
        /// </summary>
        public virtual bool AllowClose()
        {
            return true;
        }
        /// <summary>
        /// 注册事件
        /// </summary>
        public virtual void RegistEvents()
        {
        }
        /// <summary>
@@ -182,10 +194,6 @@
        /// </summary>
        public virtual void UnRegistEvents()
        {
        }
    }
}
}