예제 #1
0
 private void ManageUser_Load(object sender, EventArgs e)
 {
     dgvUserInformation.DataSource = userClass.getAllUsers();
     cmbFullName.DataSource        = memberClass.getAllMembers();
     cmbFullName.ValueMember       = "memberId";
     cmbFullName.DisplayMember     = "memberName";
     cmbFullName.SelectedIndex     = -1;
     cmbUserRole.DataSource        = userRoleClass.getAllUserRoles();
     cmbUserRole.ValueMember       = "userRoleId";
     cmbUserRole.DisplayMember     = "userRole";
     cmbUserRole.SelectedIndex     = -1;
 }
예제 #2
0
 private void MembersinProject_Load(object sender, EventArgs e)
 {
     //displays the data on datagridview which are stored on Database
     dgvMemberProjectInformation.DataSource = memberprojectClass.getAllMembersInProject();
     //shows Member Name
     cmbMember.DataSource    = memberclass.getAllMembers();
     cmbMember.ValueMember   = "memberId";
     cmbMember.DisplayMember = "memberName";
     cmbMember.SelectedIndex = -1;
     //shows Project Name
     cmbProject.DataSource    = projectclass.getAllProjects();
     cmbProject.ValueMember   = "projectId";
     cmbProject.DisplayMember = "projectName";
     cmbProject.SelectedIndex = -1;
     //Display list of Member Role
     cmbMemberRole.DataSource    = userroleclass.getAllUserRoles();
     cmbMemberRole.ValueMember   = "userRoleId";
     cmbMemberRole.DisplayMember = "userRole";
     cmbMemberRole.SelectedIndex = -1;
 }
 private void ManageUSerRole_Load(object sender, EventArgs e)
 {
     dgvUserRoleInformation.DataSource = userRoleClass.getAllUserRoles();
 }