[#3] Services: Use .elwig.zip as export extension

This commit is contained in:
2024-07-27 19:29:51 +02:00
parent ae1e985656
commit a5164e286f
3 changed files with 7 additions and 7 deletions

View File

@ -99,8 +99,8 @@ namespace Elwig.Windows {
try {
var d = new OpenFileDialog() {
Title = "Export-Datei auswählen - Elwig",
DefaultExt = ".zip",
Filter = "ZIP-Datei (*.zip)|*.zip",
DefaultExt = ".elwig.zip",
Filter = "Elwig-Export-Datei (*.elwig.zip)|*.elwig.zip",
Multiselect = true,
};
if (d.ShowDialog() == true) {
@ -158,7 +158,7 @@ namespace Elwig.Windows {
return;
Mouse.OverrideCursor = Cursors.AppStarting;
try {
var path = Path.Combine(App.TempPath, $"{DateTime.Now:yyyy-MM-dd_HH-mm-ss}_{App.ZwstId}.zip");
var path = Path.Combine(App.TempPath, $"{DateTime.Now:yyyy-MM-dd_HH-mm-ss}_{App.ZwstId}.elwig.zip");
using var ctx = new AppDbContext();
var deliveries = await ctx.Deliveries
.Where(d => d.Year == Utils.CurrentLastSeason && d.ZwstId == App.ZwstId)