private void ShowGallery(string e)
        {
            this.Visible = false;
            SimpleGallery simpleGallery = new SimpleGallery(true);

            simpleGallery.AllImages           = new List <TheImage>();
            simpleGallery.USBDriveLetter      = e;
            simpleGallery.AnimationFormObject = AnimationForm;
            simpleGallery.Show();
        }
Exemple #2
0
        private void Done(bool IsWeb)
        {
            imageIO.BubbleSortImages(AllImages);

            foreach (var item in AllImages)
            {
                //TODO: #PPFunc:  Done call whole post processing function here, just thumbail func is enough
                //Create Thumbnails
                Task task = new Task(async() => { await imageIO.Wifi_PostProcessImages(item); });
                task.Start();
                task.Wait();
                //ReportProgressForThumbnails(item.ImageDirName);
            }

            AllImages.Reverse();
            if (InvokeRequired || waiter.InvokeRequired)
            {
                Invoke(new Action(() => waiter.Visible = false));
            }
            else
            {
                waiter.Visible = false;
            }
            if (IsWeb)
            {
                SimpleGallery gallery = new SimpleGallery
                {
                    WifiConnectHelpObject = this,
                    AnimationFormObject   = AnimationForm,
                    AllImages             = AllImages
                };
                this.Visible = false;
                gallery.Show();
            }
            else
            {
                DirectoryGallery gallery = new DirectoryGallery {
                    AllImages = AllImages
                };
                this.Visible = false;
                gallery.Show();
            }
        }