private void loadUserRoles() { RoleHelper client = new RoleHelper(); cboRole.SelectedValuePath = "RoleID"; cboRole.DisplayMemberPath = "Post"; cboRole.ItemsSource = client.ViewUserEventRoles(user.UserID, event_.EventID); client.Close(); if (cboRole.Items.Count == 0) { //MessageBox.Show("You are currently not assigned any role in the system", "No Roles Assigned", // MessageBoxButton.OK, MessageBoxImage.Information); } else { cboRole.SelectedIndex = 0; } ClearAll(); }