private void frmEditUser_Load(object sender, EventArgs e) { this.msltUser.Text = selectedUser.UserName; UIIni.LoadRoles(cmbRole); cmbRole.SelectedIndex = selectedUser.RoleId - 2; }
/// <summary> /// Handles the Load event of the frmAddUser control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void frmAddUser_Load(object sender, EventArgs e) { UIIni.LoadRoles(cmbRole); }