private void BtnStartClick(object sender, EventArgs e)
        {
            if (!Directory.Exists(txtBackupFolder.Text))
            {
                Directory.CreateDirectory(txtBackupFolder.Text);
            }
            btnStart.Enabled = false;

            DataController.ConnectString = SqlHelper.ConnectionString;
            var backup = new DataController();
            lblMessage.Text = @"Đang Sao Lưu...";
            backup.BackupProcess += BackupBackupProcess;
            backup.BackupComplete += BackupBackupComplete;
            backup.BackupError += BackupBackupError;

            var newThread = new Thread(
                () => backup.BackupDataBase(SqlHelper.Database, txtBackupFolder.Text + "\\" + txtBackupFile.Text));
            newThread.Start();
        }
 private void btnStart_Click(object sender, EventArgs e)
 {
     btnStart.Enabled = false;
     //SYS_LOG.Insert("Cơ Sơ Dữ Liệu", "Phục Hồi", txtBackupFolder.Text + ", " + txtBackupFile.Text);
     DataController.ConnectString = SqlHelper.ConnectionString;
     var restore = new DataController();
     groupControl1.Text = @"Đang Phục Hồi...";
     restore.RestoreComplete += restore_RestoreComplete;
     restore.RestoreError += restore_RestoreError;
     restore.RestoreProcess += restore_RestoreProcess;
     var newThread = new Thread(() => restore.RestoreDatabase(txtBackupFile.Text, txtBackupFolder.Text));
     newThread.Start();
 }