Exemple #1
0
 private void InitRecoverGrid()
 {
     if (string.IsNullOrEmpty(dbSavePath))
     {
         dbSavePath = AppDomain.CurrentDomain.BaseDirectory + "\\Data\\SqlBackup\\";
     }
     string[] files = Directory.GetFiles(dbSavePath, "*.sql");
     if (files == null || files.Length == 0)
     {
         return;
     }
     DBBackupPath[] pathes = DBBackupPath.GetPathes(files);
     if (pathes != null)
     {
         DataGrid1.ItemsSource = pathes;
     }
 }