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); }
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; }