예제 #1
0
        public string BackupDatabase(ref string DataBaseFile)
        {
            string errors = "Error";

            try
            {
                switch (db.BackupDatabase(ref DataBaseFile))
                {
                case -1: { errors = "Error"; } break;

                case -2: { errors = "database="; } break;

                case -3: { errors = "LenCopy"; } break;

                case 0: { errors = "SUCCESS"; } break;
                }
            }
            catch (Exception ex)
            {
                RDL.Debug.LogError(ex);
            }
            return(errors);
        }