public MainWindow()
        {
            InitializeComponent();
            _colorControls = new ColorControls();

            var colorSwatch = new ColorSwatchDisplay(ColorSwatchDisplayElement);
            _colorControls.RegisterObserver(colorSwatch);

            var colorText = new ColorTextDisplay(ColorTextDisplayElement);
            _colorControls.RegisterObserver(colorText);

            var colorRgbText = new ColorRgbTextDisplay(ColorRgbTextDisplayElement);
            _colorControls.RegisterObserver(colorRgbText);

            var colorWindowBg = new ColorRgbaPanelBackground(MainGrid);
            _colorControls.RegisterObserver(colorWindowBg);
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            _colorControls = new ColorControls();

            var colorSwatch = new ColorSwatchDisplay(ColorSwatchDisplayElement);

            _colorControls.RegisterObserver(colorSwatch);

            var colorText = new ColorTextDisplay(ColorTextDisplayElement);

            _colorControls.RegisterObserver(colorText);

            var colorRgbText = new ColorRgbTextDisplay(ColorRgbTextDisplayElement);

            _colorControls.RegisterObserver(colorRgbText);

            var colorWindowBg = new ColorRgbaPanelBackground(MainGrid);

            _colorControls.RegisterObserver(colorWindowBg);
        }