private void selectBackgroundBT_Click(object sender, RoutedEventArgs e) { Color color = pickColor(barConf.getBackgroundColor()); barConf.setBackground(color); backgroundRectangle.Fill = barConf.getBackgroundBrush(); }
public BarConfigDialog() { InitializeComponent(); barConf = Model.getInstance().getBarConf(); foregroundRectangle.Fill = barConf.getForegroundBrush(); backgroundRectangle.Fill = barConf.getBackgroundBrush(); }
private void setBarConf() { BarConf barConf = Model.getInstance().getBarConf(); barCanvas.Background = barConf.getBackgroundBrush(); foreach (FrameworkElement fe in barCanvas.Children) { if (fe.GetType().Equals(typeof(Line))) { ((Line)fe).Stroke = barConf.getForegroundBrush(); ((Line)fe).StrokeThickness = 2; } } }