private void ExportShare() { var props = dialog.GetPropertyPage((int)ExportFormat.Share); var share = props.GetSelectedIndex(0) == 1; var filename = !string.IsNullOrEmpty(app.Project.Filename) ? Path.GetFileName(app.Project.Filename) : $"{project.Name}.fms"; if (share) { filename = PlatformUtils.GetShareFilename(filename); app.SaveProjectCopy(filename); PlatformUtils.StartShareFileAsync(filename, () => { PlatformUtils.ShowToast("Sharing Successful!"); }); } else { PlatformUtils.StartMobileSaveFileOperationAsync("*/*", filename, (f) => { app.SaveProjectCopy(f); PlatformUtils.FinishMobileSaveFileOperationAsync(true, () => { PlatformUtils.ShowToast("Sharing Successful!"); }); }); } }