Exemplo n.º 1
0
 public CrearEstrategia(ListaEstrategia application, String conexion, String servidor, String instancia, String estrategiaOld)
 {
     InitializeComponent();
     dbInstance.Text = "Database Instance: " + instancia;
     bdServer.Text   = "Server: " + servidor;
     connection      = conexion;
     solicitaTablespaces(connection);
     app = application;
     backupScript.Add("run{");
     idEstrategia1 = estrategiaOld;
 }
        private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            String baseBusqueda = "";
            String servidor     = "";
            String conexion     = "";

            if (e.RowIndex >= 0)
            {
                DataGridViewRow row = this.dataGridView1.Rows[e.RowIndex];
                baseBusqueda = row.Cells["DATABASE_INSTANCE"].Value.ToString();
                servidor     = row.Cells["CONN_NAME"].Value.ToString();
                conexion     = row.Cells["CONN_ID"].Value.ToString();
                ListaEstrategia lista = new ListaEstrategia(this, servidor, baseBusqueda, conexion);
                //System.Windows.Forms.MessageBox.Show(servidor + baseBusqueda);
                lista.ShowDialog();
            }
        }
Exemplo n.º 3
0
 public EditarEstrategia(ListaEstrategia application, String conexion, String servidor, String instancia, String idEstrategia, String priority, String activo)
 {
     app = application;
     InitializeComponent();
     strategyIdTfd.Text = idEstrategia;
     connectionTfd.Text = conexion;
     priorityTfd.Text   = priority;
     if (activo == "1")
     {
         checkBox1.Checked = true;
     }
     else
     {
         checkBox1.Checked = false;
     }
     solicitaLogs(idEstrategia);
 }