Ejemplo n.º 1
0
        private void SaveImage(RecentFile recentfile)
        {
            if (recentfile.Type == RecentFileType.Local)
            {
                this.SaveImageLocal(recentfile.GetFilePath());
            }

            if (recentfile.Type == RecentFileType.Ftp)
            {
                this.SaveImageFtp(recentfile);
            }

            this.IsUnsaved = false;
            this.FirePropertyChangedEvent(null);
        }
Ejemplo n.º 2
0
        private void OpenImage(RecentFile recentfile)
        {
            if (recentfile.Type == RecentFileType.Local)
            {
                this.SelectedImagePath = recentfile.GetFilePath();
                this.OpenImageLocal(this.SelectedImagePath);
            }

            if (recentfile.Type == RecentFileType.Ftp)
            {
                this.SelectedImagePath = recentfile.GetFtpUrlFilePath();
                this.OpenImageFtp(recentfile);
            }

            this.CurrentFile = recentfile;
        }