private void frmUserRegistration_Load(object sender, EventArgs e) { uMgmnt = new StudentManagementSystem.Business.UserManagement(); uInfo = new UserInfo(); cmbUserRole.DataSource = uMgmnt.Set_role_dropdown(); cmbUserRole.DisplayMember = "Role_Name"; cmbUserRole.ValueMember = "Role_Id"; }
private void UserUpdate_Load(object sender, EventArgs e) { uMgmnt = new StudentManagementSystem.Business.UserManagement(); uInfo = new UserInfo(); cmbUserRole.DataSource = uMgmnt.Set_role_dropdown(); cmbUserRole.DisplayMember = "Role_Name"; cmbUserRole.ValueMember = "Role_Id"; uInfo = uMgmnt.SelectUserDetailsUsingUserID(this.userId); this.LoadAllControls(); }