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(); } }
public BackUpWindowViewModel() { BackUpName = ManagerDB.GetBackUpName(); }