private async void FormResources_Load(object sender, EventArgs e) { ResourcesListBox.Items.Clear(); foreach (InstalledResource resource in await folder.GetResources()) { ResourcesListBox.Items.Add(resource); } if (ResourcesListBox.Items.Count > 0) { ResourcesListBox.SelectedIndex = 0; } }