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;
}
}