예제 #1
0
 private void CreateBackUpAuto()
 {
     if (IsIceNotExists())
     {
         try
         {
             string backUpTableName = ManagerDB.GetBackUpName();
             string count           = ManagerDB.CreateBackUp(backUpTableName);
             QLoger.AddRecordToLog("Создана таблица " + backUpTableName + ", количество записей - " + count + ".");
             if (backUpTableName.Length > 0 && count.Length > 0 && QMediator.IsAuto)
             {
                 StartAdrSplit();
             }
         }
         catch (Exception)
         {
             CreateBackUpWin();
         }
     }
     else
     {
         StartAdrSplit();
     }
 }
예제 #2
0
 public BackUpWindowViewModel()
 {
     BackUpName = ManagerDB.GetBackUpName();
 }