Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }