d11f0e46c0
clean up and fixes - Heute gefixt - Code Cleanup NotificationScheduleItemViewModel -fixed NotificationScheduleItemViewModel for Windows compat push implementation Push fixes Push benachrichtungen eingebaut - Status bei push - Push auch in background - Toggle für symtome angepasst push system change exporter update Optionen fix - Optionen aufgeteilt auf 3 tabs - Anpassungen haben jetzt Farbslider Optimierung fix
29 lines
830 B
C#
29 lines
830 B
C#
namespace cfs_tracker.Services;
|
|
|
|
public static class ExportUiHelper
|
|
{
|
|
public static async Task ShowExportSavedActionsAsync(ExportResult result)
|
|
{
|
|
var action = await Shell.Current.DisplayActionSheetAsync(
|
|
$"Export gespeichert:\n{result.FileName}",
|
|
"Schließen",
|
|
null,
|
|
"Öffnen",
|
|
"Teilen");
|
|
|
|
if (action == "Öffnen")
|
|
{
|
|
await Launcher.Default.OpenAsync(new OpenFileRequest(
|
|
"Export öffnen",
|
|
new ReadOnlyFile(result.FilePath)));
|
|
}
|
|
else if (action == "Teilen")
|
|
{
|
|
await Share.Default.RequestAsync(new ShareFileRequest
|
|
{
|
|
Title = "Export teilen",
|
|
File = new ShareFile(result.FilePath)
|
|
});
|
|
}
|
|
}
|
|
} |