public void Download() { this.FileData = _fileLoader.LoadFileData(ElementPath); string path = (StaticContainer.Container.Resolve(typeof(IApplicationGlobalCommands)) as IApplicationGlobalCommands) .SelectFilePathToSave("Сохранить файл", "", "", Name).GetFirstValue(); StreamWriter sw = new StreamWriter(path); sw.Write(Encoding.UTF8.GetString(this.FileData)); sw.Close(); }