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