private void TargetThicknessList_SelectionChanged(object sender, SelectionChangedEventArgs e) { selectedThicknessTarget = (ThicknessTarget)targetThicknessList.SelectedIndex; switch (selectedThicknessTarget) { case ThicknessTarget.Line: ThicknessSlider.Value = Settings.PlotVisualParams.LineStrokeThickness; break; case ThicknessTarget.Vector: ThicknessSlider.Value = Settings.PlotVisualParams.ArrowStokeThickness; break; case ThicknessTarget.BorderStroke: ThicknessSlider.Value = Settings.PlotVisualParams.BorderStrokeThickness; break; } RSlider.Focus(); }
private void TargetList_SelectionChanged(object sender, SelectionChangedEventArgs e) { selectedColorTarget = (ColorTarget)targetList.SelectedIndex; switch (selectedColorTarget) { case ColorTarget.Line: R = Settings.PlotVisualParams.LineColor.R; G = Settings.PlotVisualParams.LineColor.G; B = Settings.PlotVisualParams.LineColor.B; break; case ColorTarget.Vector: R = Settings.PlotVisualParams.ArrowColor.R; G = Settings.PlotVisualParams.ArrowColor.G; B = Settings.PlotVisualParams.ArrowColor.B; break; case ColorTarget.BorderFill: R = Settings.PlotVisualParams.BorderFillColor.R; G = Settings.PlotVisualParams.BorderFillColor.G; B = Settings.PlotVisualParams.BorderFillColor.B; break; case ColorTarget.BorderStroke: R = Settings.PlotVisualParams.BorderStrokeColor.R; G = Settings.PlotVisualParams.BorderStrokeColor.G; B = Settings.PlotVisualParams.BorderStrokeColor.B; break; } SetColorSliderValue(); RSlider.Focus(); }