Paint.HomeScreen.LoadAndDisplayImages C# (CSharp) Méthode

LoadAndDisplayImages() public méthode

Loads all of our images and displays them on screen ready for editing
public LoadAndDisplayImages ( ) : void
Résultat void
        public void LoadAndDisplayImages()
        {
            DirectoryInfo di = new DirectoryInfo(this.masterImagePath);
            FileSystemInfo[] files = di.GetFileSystemInfos("*.JPG");
            this.fileList = files.OrderByDescending(f => f.LastWriteTimeUtc).Select(x => x.FullName).ToList();

            this.fileListLength = this.fileList.Count;

            if (this.fileListLength > 0)
            {
                this.LoadImageWithIndex(0, this.fileListLength - 1);
                this.LoadImageWithIndex(1, 0);
                this.LoadImageWithIndex(2, Math.Min(this.fileListLength - 1, 1));
            }

            this.currentFileIndex = 0;
        }