private void btnRestore_Click(object sender, EventArgs e) { DataGridViewRow row = dataGridView1.CurrentRow; if (row == null) { return; } if (m_mode == Mode.Content) { MsSqlRestoreDialog.Run(m_conn.Clone(), Int32.Parse(row.Tag.ToString())); } if (m_mode == Mode.Widget) { if (m_appobj == null) { return; } var db = m_appobj.FindDatabaseConnection(ConnPack); MsSqlRestoreDialog.Run(db.Connection.Clone(), Int32.Parse(row.Tag.ToString())); } }
public void SystemRestore() { MsSqlRestoreDialog.Run(Node.GetConnection().Clone()); }
public static void Run(IPhysicalConnection conn) { var win = new MsSqlRestoreDialog(conn); win.ShowDialogEx(); }
public static void Run(IPhysicalConnection conn, int backupsetid) { var win = new MsSqlRestoreDialog(conn, backupsetid); win.ShowDialogEx(); }