/** * Modifica el background del perfil seleccionado */ private void selectProfile(Button b) { PerfilClass perfilSelected = Lista.getProfile(b.Content.ToString()); if (perfilSelected != null) { Lista.clearBackProfile(); b.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF595959")); } }
/** * Modifica el background del boton seleccionado */ private void selectProfile(object sender, RoutedEventArgs e) { Button aux = (Button)sender; PerfilClass perfilSelected = Lista.getProfile(aux.Content.ToString()); if (perfilSelected != null) { if (_newSelectedProfile != null & _newSelectedProfile.nombre.CompareTo(aux.Content.ToString()) != 0) { _newSelectedProfile = perfilSelected; Lista.clearBackProfile(); aux.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF595959")); } } }