Added Save As function

This commit is contained in:
2017-10-12 11:45:00 +02:00
committed by BONNEVILLE Geoffroy
parent 676365460c
commit 10b6330ac6
6 changed files with 39 additions and 48 deletions

View File

@@ -1,6 +1,8 @@
using System.ComponentModel;
using Windows.UI.Xaml;
using ModernKeePass.Common;
using System;
using Windows.Storage;
namespace ModernKeePass.ViewModels
{
@@ -29,5 +31,12 @@ namespace ModernKeePass.ViewModels
app.Database.Close();
NotifyPropertyChanged("IsSaveEnabled");
}
internal void Save(StorageFile file)
{
var app = (App)Application.Current;
app.Database.Save(file);
NotifyPropertyChanged("IsSaveEnabled");
}
}
}