private void GetFiles(List <FtpListItem> dirs)
        {
            imagesindir = FTPHandle.GetItemsList(dirs[index].FullName);
            int max = imagesindir.Count;

            this.images = new List <Image>();
            if (2 == 1)
            {
                for (int i = 0; i < max; i++)
                {
                    try
                    {
                        images.Add(FTPHandle.DownloadImage(imagesindir[i].FullName));
                        ProgressReport.Report(i + 1, max);
                    }
                    catch (Exception ex) { i = 100000; ResultsList.FromException(ex); }
                }
            }
            else
            {
                if (ImgMem.IsSaved(imagesindir))
                {
                    List <ImgMem.Dir> dirstos = ImgMem.dirs;
                    ImgMem.Dir        dir     = ImgMem.dirs[ImgMem.SavedIndex(imagesindir)];
                    images = dir.images;
                    ProgressReport.Report(1, 1);
                    SetImages();
                }
                else
                {
                    for (int i = 0; i < max; i++)
                    {
                        try
                        {
                            images.Add(FTPHandle.DownloadImage(imagesindir[i].FullName));
                            ProgressReport.Report(i + 1, max);
                        }
                        catch (Exception ex) { i = 100000; ResultsList.FromException(ex); }
                    }
                    ImgMem.Save(images, imagesindir, dirs[index].Name);
                }
                ImgMem.SaveImages();
            }
        }
        public List <FtpListItem> GetItems(bool changecombobox = false)
        {
            if (comboBox1.SelectedIndex >= 0)
            {
                index = comboBox1.SelectedIndex;
            }
            if (changecombobox)
            {
                comboBox1.Items.Clear();
            }
            //if (changecombobox) comboBox1.Items.Add("Select Dir");
            List <FtpListItem> dirs = FTPHandle.GetItemsList("/ScreenShot");

            for (int i = 0; i < dirs.Count; i++)
            {
                if (changecombobox)
                {
                    comboBox1.Items.Add(dirs[i].Name + "   ||    Count : " + FTPHandle.GetItemsList(dirs[i].FullName).Count);
                }
            }
            //if (changecombobox) comboBox1.SelectedIndex = 0;
            return(dirs);
        }