Exemplo n.º 1
0
        public TopMemuItemProvider(ILoginVerification loginVerify, IUserAccessControl uac, IUserManagement userManagement)
        {
            this.LoginVerify = loginVerify ?? throw new ArgumentException("登录验证接口不能为空引用。");
            this.UAC         = uac;
            _userManager     = userManagement;

            this.InitializeMenu();

            this.AddDisposable(GlobalMessageBus.SubscribeUserChanged(OnUserChanged));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public FormLogin(ILoginVerification verify)
        {
            if (verify == null)
            {
                throw new ArgumentException("登录验证接口不能为空引用。");
            }

            this.Verification = verify;

            InitializeComponent();

            this.Initialize();
        }