示例#1
0
        public void ExecuteOpenFile(object args)
        {
            string fileTypesPattern = "All files (*.*)|*.*";
            string defaultExt       = string.Empty;

            this.FilePath = GetFilePathFromFileDialog.GetFilePahtFromSaveFileDialog(fileTypesPattern, defaultExt);
        }
示例#2
0
        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);
        }