private void showChildItemsButton_Click(object sender, EventArgs e) { ShellContainer container = currentlySelected as ShellContainer; if (container == null) { return; } SubItemsForm subItems = new SubItemsForm(); // Populate foreach (ShellObject so in container) { subItems.AddItem(so.Name, so.Thumbnail.SmallBitmap); } subItems.ShowDialog(); }
private void showChildItemsButton_Click(object sender, EventArgs e) { ShellContainer container = currentlySelected as ShellContainer; if (container == null) return; SubItemsForm subItems = new SubItemsForm(); // Populate foreach (ShellObject so in container) subItems.AddItem(so.Name, so.Thumbnail.SmallBitmap); subItems.ShowDialog(); }