示例#1
0
        private void selectBackgroundBT_Click(object sender, RoutedEventArgs e)
        {
            Color color = pickColor(barConf.getBackgroundColor());

            barConf.setBackground(color);
            backgroundRectangle.Fill = barConf.getBackgroundBrush();
        }
示例#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;
                }
            }
        }