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

AddImageToFileListAndScrollToDisplay() private méthode

Adds the image to the file list and then scrolls the screen to display that image
private AddImageToFileListAndScrollToDisplay ( string imageFilename ) : void
imageFilename string /// Image to add and then display. ///
Résultat void
        private void AddImageToFileListAndScrollToDisplay(string imageFilename)
        {
            int newFileLocation = this.currentFileIndex + 1;

            this.fileListLength++;
            this.fileList.Insert(newFileLocation, imageFilename);
            this.LoadImageWithIndex(2, newFileLocation);
            this.scrollView.SetContentOffset(new PointF(this.imageViewList[2].Frame.X, 0), true);
        }