コード例 #1
0
 private void PaletteColorSelectedMessageReceived(PaletteColorSelectedMessage message)
 {
     if (SelectedColor != null && SelectedColor.Id != message.Id)
     {
         SelectedColor.Unselect();
     }
     SelectedColor = PaletteColors.First(x => x.Id == message.Id);
 }
コード例 #2
0
 public void SetSelectedColor(Texture texture)
 {
     SelectedColor?.Unselect();
     SelectedColor = PaletteColors.First(x => x.Texture == texture);
     SelectedColor.Select();
 }