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

            win.ShowDialogEx();
        }
示例#4
0
        public static void Run(IPhysicalConnection conn, int backupsetid)
        {
            var win = new MsSqlRestoreDialog(conn, backupsetid);

            win.ShowDialogEx();
        }