private void Backup_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog()
            {
                Filter   = "Файл базы данных (*.db)|*.db",
                FileName = "DealerBase_Backup.db"
            };

            if ((bool)saveFileDialog.ShowDialog())
            {
                DBAccess.BackupDatabase(saveFileDialog.FileName);
            }
        }
 private void Window_Closed(object sender, EventArgs e)
 {
     DBAccess.BackupDatabase();
 }