/** * Load in the contents of the projects and refresh the treeView */ private void RefreshTreeView() { openButton.Enabled = false; projects = Controller.GetAllProjectsForUser(activeUser); // Fill up with projects projectBox.Items.Clear(); foreach (Project p in projects) { projectBox.Items.Add(p); if (selectedProject != null && p.Id == selectedProject.Id) { projectBox.SelectedItem = p; } } }