using System;
using System.Collections.Generic;
using System.Text;
using JuSNS.Model;

namespace JuSNS.UI.Page
{
    public class DialogPage : BasePage
    {
        /// <summary>
        /// 对话窗口操作权限
        /// </summary>
        protected enum EnumDialogAuthority
        {
            /// <summary>
            /// 完全公开
            /// </summary>
            Publicity,
            /// <summary>
            /// 只对管理员可用
            /// </summary>
            ForAdmin,
            /// <summary>
            /// 只对个人用户可用
            /// </summary>      
            ForPerson
        }
        protected EnumDialogAuthority _BrowserAuthor = EnumDialogAuthority.ForAdmin;

        public DialogPage()
        {
            this.Load += new EventHandler(DialogPage_Load);
        }
        /// <summary>
        /// LOAD事件处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DialogPage_Load(object sender, EventArgs e)
        {
            
        }
        /// <summary>
        /// 设置权限，要在子类的构造函数里设置,默认值为管理员可用
        /// </summary>
        protected EnumDialogAuthority BrowserAuthor
        {
            set { _BrowserAuthor = value; }
        }
    }
}
