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); } }
public static void Run(IDatabaseSource conn, BackupContainer backup) { if (conn.Connection == null) return; var win = new RestoreDbForm(conn, backup); win.ShowDialogEx(); }