private void DropdownList_stats_SelectedItemChanged(object sender, EventArgs e) { DarkDropdownList lista = sender as DarkDropdownList; DarkDropdownItem item_seleccionado = lista.SelectedItem; StatsBoosteables boost_antiguo = cuenta.pelea_extension.configuracion.stat_boost; StatsBoosteables boost_nuevo = (StatsBoosteables)lista.Items.IndexOf(item_seleccionado); if (boost_nuevo != boost_antiguo) { cuenta.pelea_extension.configuracion.stat_boost = boost_nuevo; cuenta.pelea_extension.configuracion.guardar(); } }
private void comboBox_lista_canales_SelectedItemChanged(object sender, EventArgs e) { DarkDropdownList control = sender as DarkDropdownList; textBox_nombre_privado.Enabled = control.SelectedItem.Text.Equals("Mensaje privado"); }