コード例 #1
0
        /// <summary>
        /// The login.
        /// </summary>
        private void Login()
        {
            try
            {
                this.loginInfo = new LoginInfo();
                this.loginInfo.Login = this.LoginName;
                this.loginInfo.Password = this.Password;

                UserManager userManager = new UserManager();
                User user = userManager.EnterTheSystem(this.loginInfo);

                Application.Current.Properties["UserID"] = user.UserID;

                ControlManager.GetInstance().Place("MainWindow", "mainRegion", "DashboardControl");
            }
            catch (Exception exception)
            {
                // TODO create Exception Base
                this.View.ShowError(exception.ToString());
            }
        }