Пример #1
0
 void Button3Click(object sender, EventArgs e)
 {
     if(this.dataGridView1.RowCount == 0)
     {
         MessageBox.Show("             Tabla vacia\nIntentá con el boton Mostrar", "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else{
         ModificarAdmin editAdmin = new ModificarAdmin(this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
         editAdmin.Owner = this;
         editAdmin.ShowDialog();
     }
 }
Пример #2
0
 void Button3Click(object sender, EventArgs e)
 {
     if (this.dataGridView1.RowCount == 0)
     {
         MessageBox.Show("             Tabla vacia\nIntentá con el boton Mostrar", "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         ModificarAdmin editAdmin = new ModificarAdmin(this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
         editAdmin.Owner = this;
         editAdmin.ShowDialog();
     }
 }