客房管理系统_1._0.Register.Register_Load C# (CSharp) Method

Register_Load() private method

private Register_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void Register_Load(object sender, EventArgs e)
        {
            if (this.Text == "修改信息")
            {
                this.label8.Text = null;

                this.textBoxRegisterName.Text =UserInformation.CurrentUser.Name ;
                this.textBoxRegisterPwd1.Text = UserInformation.CurrentUser.Password ;
                this.textBoxRegisterPwd2.Text = UserInformation.CurrentUser.Password;
                this.textBoxRegisterPosition.Text=UserInformation.CurrentUser.Position ;
                this.comboBoxRegisterPrivilege.Text = UserInformation.CurrentUser.Privilege.ToString();
                this.comboBoxRegisterPrivilege.Enabled = false;
                this.textBoxRegisterRegisteredName.Text =UserInformation.CurrentUser.RegisteredName ;
                this.textBoxRegisterRegisteredName.Enabled = false;
                this.comboBoxRegisterSex.Text  = UserInformation.CurrentUser.Sex;
                this.textBoxRegisterTele.Text =UserInformation.CurrentUser.Telephone ;

                this.buttonCheckUserName.Visible = false;
            }
        }