コード例 #1
0
 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;
     }
 }