public SkyDriveFile(string path, string description) { sourceFilePath = path; destinationFilePath = path.Insert(path.LastIndexOf('.'), "_" + description); plotSourceFilePath = AudiogramPathUtil.GetSvgFilePath(sourceFilePath); plotDestinationFilePath = plotSourceFilePath.Insert(plotSourceFilePath.LastIndexOf('.'), "_" + description); }
public async Task SaveToFileAsync() { var svgPath = AudiogramPathUtil.GetSvgFilePath(LastUsedPath); var svg = SvgExporter.ExportToString(PlotModel, 1920, 1280, true, new SilverlightRenderContext(new InkPresenter())); var file = await storageFolder.CreateFileAsync(svgPath, CreationCollisionOption.ReplaceExisting); using (var stream = await file.OpenStreamForWriteAsync()) using (var writer = new StreamWriter(stream)) { await writer.WriteAsync(svg); } }
public SkyDriveFile(string path) { destinationFilePath = sourceFilePath = path; plotDestinationFilePath = plotSourceFilePath = AudiogramPathUtil.GetSvgFilePath(path); }