Пример #1
0
        private void selectForegroundBT_Click(object sender, RoutedEventArgs e)
        {
            Color color = pickColor(barConf.getForegroundColor());

            barConf.setForeground(color);
            foregroundRectangle.Fill = barConf.getForegroundBrush();
        }
Пример #2
0
        public BarConfigDialog()
        {
            InitializeComponent();
            barConf = Model.getInstance().getBarConf();

            foregroundRectangle.Fill = barConf.getForegroundBrush();
            backgroundRectangle.Fill = barConf.getBackgroundBrush();
        }
Пример #3
0
        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;
                }
            }
        }