コード例 #1
0
ファイル: frmDataMaintenance.cs プロジェクト: hezhangxi/rms
 /// <summary>
 /// 还原数据
 /// </summary>
 /// <returns></returns>
 private bool RecoverData(string paramRecoverFilePath)
 {
     try
     {
         if (DbOperator.DataBaseRecover(paramRecoverFilePath))
         {
             return(true);
         }
         else
         {
             XtraMessageBox.Show("还原数据失败,请重新选择数据备份文件", "抱歉", MessageBoxButtons.OK);
             this.txtRecoverPath.Focus();
             this.txtRecoverPath.SelectAll();
             return(false);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(false);
 }