Exemplo n.º 1
0
        public DeviceUserControl(string deviceName, OptionsWindow parent)
        {
            InitializeComponent();

            DeviceName = deviceName;
            _parent    = parent;

            DataContext = this;
        }
Exemplo n.º 2
0
        public ColorUserControl(OptionsWindow parent, string description, Color color)
        {
            _parent = parent;

            Description = description;

            InitializeComponent();

            // Fill the color indicator with the color of the effect.
            ColorIndicator.Fill = new SolidColorBrush(System.Windows.Media.Color.FromArgb(color.A, color.R, color.G, color.B));
            DataContext         = this;
        }