Exemplo n.º 1
0
        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()));
            }
        }
Exemplo n.º 2
0
 public void SystemRestore()
 {
     MsSqlRestoreDialog.Run(Node.GetConnection().Clone());
 }
Exemplo n.º 3
0
        public static void Run(IPhysicalConnection conn)
        {
            var win = new MsSqlRestoreDialog(conn);

            win.ShowDialogEx();
        }
Exemplo n.º 4
0
        public static void Run(IPhysicalConnection conn, int backupsetid)
        {
            var win = new MsSqlRestoreDialog(conn, backupsetid);

            win.ShowDialogEx();
        }