private void BindColorTest(ColorControlSliders which) { switch (which) { case ColorControlSliders.Note: testRect.Background = new SolidColorBrush(currNoteColor); break; case ColorControlSliders.Text: testText.Foreground = new SolidColorBrush(currTextColor); break; } }
private void BindSliders(Color color, ColorControlSliders which) { switch (which) { case ColorControlSliders.Note: this.sAlphaNote.Value = color.ScA; this.sRedNote.Value = color.ScR; this.sGreenNote.Value = color.ScG; this.sBlueNote.Value = color.ScB; break; case ColorControlSliders.Text: this.sAlphaText.Value = color.ScA; this.sRedText.Value = color.ScR; this.sGreenText.Value = color.ScG; this.sBlueText.Value = color.ScB; break; } }