GetSureName() public method

public GetSureName ( ) : String
return String
示例#1
0
        private void UserEditorForm_Load(object sender, EventArgs e)
        {
            ICollection <UserRole> userRoles = DbService.GetAll <UserRole>();

            this.comboBoxRole.Items.Clear();
            this.comboBoxRole.Items.Insert(0, "");
            foreach (UserRole ur in userRoles)
            {
                this.comboBoxRole.Items.Insert(ur.vid, ur.vname);
            }
            userAuth = AuthAdapter.GetInstance().getIdentity();
            if (!UserFactory.isRoot(userAuth))
            {
                this.button2.Visible      = false;
                this.comboBoxRole.Visible = false;
            }
            this.plec.Items.Insert((int)SexEnum.Male, "mężczyzna");
            this.plec.Items.Insert((int)SexEnum.Female, "kobieta");
            this.textBoxName.Text            = userAuth.GetName();
            this.textBoxSureName.Text        = userAuth.GetSureName();
            this.dateOfBirthTimePicker.Value = userAuth.GetDateOfBirth();
            this.plec.SelectedIndex          = (int)userAuth.GetSex();
            this.comboBoxRole.SelectedIndex  = userAuth.vRole;
        }
示例#2
0
        private void UserEditorForm_Load(object sender, EventArgs e)
        {
            ICollection<UserRole> userRoles = DbService.GetAll<UserRole>();

            this.comboBoxRole.Items.Clear();
            this.comboBoxRole.Items.Insert(0, "");
            foreach (UserRole ur in userRoles) {
                this.comboBoxRole.Items.Insert(ur.vid, ur.vname);
            }
            userAuth = AuthAdapter.GetInstance().getIdentity();
            if (!UserFactory.isRoot(userAuth))
            {
                this.button2.Visible = false;
                this.comboBoxRole.Visible = false;

            }
            this.plec.Items.Insert((int)SexEnum.Male, "mężczyzna");
            this.plec.Items.Insert((int)SexEnum.Female, "kobieta");
            this.textBoxName.Text = userAuth.GetName();
            this.textBoxSureName.Text = userAuth.GetSureName();
            this.dateOfBirthTimePicker.Value = userAuth.GetDateOfBirth();
            this.plec.SelectedIndex = (int) userAuth.GetSex();
            this.comboBoxRole.SelectedIndex = userAuth.vRole;
        }