示例#1
0
 public void Restore()
 {
     try
     {
         m_backup.Format.CheckRestoreConfiguration(m_conn);
         BackupContainer backup = new BackupContainer(m_file.DataDiskPath);
         RestoreDbForm.Run(m_conn.CloneSource(), backup);
     }
     catch (Exception err)
     {
         Errors.Report(err);
     }
 }
示例#2
0
 public static void Run(IDatabaseSource conn, BackupContainer backup)
 {
     if (conn.Connection == null) return;
     var win = new RestoreDbForm(conn, backup);
     win.ShowDialogEx();
 }