private void RestoreDatabase(Restore res, TreeNode tn) { blRestoreCompleted = false; res.Database = tn.Text; res.Action = RestoreActionType.Database; res.Devices.AddDevice(strFileName, DeviceType.File); res.ReplaceDatabase = true; this.pgrRestore.Value = 0; this.pgrRestore.Maximum = 100; res.PercentCompleteNotification = 5; res.PercentComplete += new PercentCompleteEventHandler(sqlRestore_PercentComplete); res.Complete += new ServerMessageEventHandler(sqlRestore_Complete); res.SqlRestore(DBHelper.Server); stLog += "\r\n " + tn.Text + " from file " + strFileName;//Record database name already restore to log text if (chkRate.Checked == true) { string ExchangeRate; string StepRuning; string ccy_date; CheckRateAndStep(tn,out ExchangeRate,out ccy_date,out StepRuning); stLog += "--CcyDate: " + ccy_date + " Rate:" + ExchangeRate + " RunStep:" + StepRuning; } txtLog.Text = stLog; txtLog.Refresh(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)