public void ExecuteOpenFile(object args) { string fileTypesPattern = "All files (*.*)|*.*"; string defaultExt = string.Empty; this.FilePath = GetFilePathFromFileDialog.GetFilePahtFromSaveFileDialog(fileTypesPattern, defaultExt); }
public void ExecuteSaveAs() { var fileTypesPattern = "bmp file (*.bmp)|*.bmp|All files (*.*)|*.*"; var defaultExt = "bmp"; var savePath = GetFilePathFromFileDialog.GetFilePahtFromSaveFileDialog(fileTypesPattern, defaultExt); if (savePath.Equals(string.Empty)) { return; } if (File.Exists(savePath)) { File.Delete(savePath); } this._hiddenImageBitmapCache.Save(savePath); }