Ejemplo n.º 1
0
        private bool RestoreBackup()
        {
            bool flag;

            this.DeleteOrResetFreePos();
            try
            {
                UtlFileAccess fileAccess = this.database.logger.GetFileAccess();
                if (fileAccess.IsStreamElement(this.BackupFileName))
                {
                    FileArchiver.Unarchive(this.BackupFileName, this.DataFileName, fileAccess, 1);
                    return(true);
                }
                flag = false;
            }
            catch (Exception exception)
            {
                object[] add = new object[] { exception.Message, this.BackupFileName };
                throw Error.GetError(exception, 0x1c4, 0x1a, add);
            }
            return(flag);
        }