private void btnAgregar_Click(object sender, EventArgs e) { Plan aux = (Plan)this.lstPlanes.SelectedItem; frmAltaPlan AP = new frmAltaPlan(this, true); AP.ShowDialog(); }
private void btnModificar_Click(object sender, EventArgs e) { Plan aux = (Plan)this.lstPlanes.SelectedItem; frmAltaPlan AP = new frmAltaPlan(this, false, plan.nombre, plan.estado); this.Enabled = false; AP.Show(); }