private void PaletteColorSelectedMessageReceived(PaletteColorSelectedMessage message) { if (SelectedColor != null && SelectedColor.Id != message.Id) { SelectedColor.Unselect(); } SelectedColor = PaletteColors.First(x => x.Id == message.Id); }
public void SetSelectedColor(Texture texture) { SelectedColor?.Unselect(); SelectedColor = PaletteColors.First(x => x.Texture == texture); SelectedColor.Select(); }