private void B_SelectionChanged(object sender, SelectionChangedEventArgs e) { ColorsListbox box = sender as ColorsListbox; ChangeGradation(); CopyToClipboard(box.SelectedItem); textOfB.Text = box.SelectedItem.LegibleName; e.Handled = true; }
private void C_SelectionChanged(object sender, SelectionChangedEventArgs e) { try{ ColorsListbox box = sender as ColorsListbox; textOfC.Stroke = textOfB.Fill = textOfA.Fill = box.SelectedValue; CopyToClipboard(box.SelectedItem); textOfC.Text = C.SelectedItem.LegibleName; textOfA.Text = A.SelectedItem.LegibleName; textOfB.Text = B.SelectedItem.LegibleName; }catch (Exception ex) { Report(ex); } e.Handled = true; }