Exemple #1
0
    private static void Callback(object state)
    {
        DirectoryInfo myDirectory = new DirectoryInfo(dir);

        FileInfo[] _files = myDirectory.GetFiles();
        foreach (FileInfo file in _files)
        {
            String s;
            Thumb  thumb = new Thumb(file.FullName);
            if (thumb.Exists() == 0)
            {
                thumb.Generate();
            }
            s = thumb.Preview;
            TableImage i = new TableImage(s);
            items.Add(i);
        }


        imageTable.ItemSize(96, 96);
        imageTable.HorizSpacer = 10;
        imageTable.VertSpacer  = 10;
        imageTable.Resize(640 - 70 - 2, 480 - 37 - 2);
        Box box_images = (Box)Application.EE.DataGet("box_images");

        box_images.Show();
        System.GC.KeepAlive(imageTable);
    }