private void limpiar() { TxtPalabra.Clear(); TxtDefinicion.Clear(); TxtImagen.Clear(); TxtSeña.Clear(); ChlbCategorias.ClearSelected(); ChlbRegiones.ClearSelected(); }
private void ChlbCategorias_ItemCheck(object sender, ItemCheckEventArgs e) { for (int ix = 0; ix < ChlbRegiones.Items.Count; ++ix) { if (ix != e.Index) { ChlbRegiones.SetItemChecked(ix, false); } } if ((ChlbRegiones.CheckedItems.Count == 0)) { txtRegion.Text = ChlbRegiones.Text; BtAgregar.Enabled = false; BtModificar.Enabled = true; BtEliminar.Enabled = true; } else { txtRegion.Text = ""; BtAgregar.Enabled = true; BtModificar.Enabled = false; BtEliminar.Enabled = false; } }