예제 #1
0
        private void BackUp()
        {
            RunTaskAsync backup = new RunTaskAsync(BackupHelper.BackupDatabase);
            IAsyncResult result = backup.BeginInvoke(connString, filePath, chkDifferential.Checked, CallBack, backup);

            PrepareForm();
        }
예제 #2
0
        private void Restore()
        {
            if (!File.Exists(filePath))
            {
                MessageBox.Show("No file name specified, Please select a valid path", "Restore", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            RunTaskAsync restore = new RunTaskAsync(RestoreHelper.RestoreDatabase);
            IAsyncResult result  = restore.BeginInvoke(connString, filePath, CallBack, restore);

            PrepareForm();
        }