Beispiel #1
0
        public AdaLedArray()
        {
            InitializeComponent();
            DisplayRgbTable.IsChecked = true;
            FreezeRefresh.IsChecked = false;

            for (int i = 0; i < LedConstants.LED_COUNT; ++i)
            {
                var rectangle = _leds[i] = new LedControl();
                rectangle.SetValue(Grid.ColumnProperty, _ledGridPosition[i][0]);
                rectangle.SetValue(Grid.RowProperty, _ledGridPosition[i][1]);

                ArrayGrid.Children.Add(rectangle);
            }
        }
Beispiel #2
0
        public AdaLedArray()
        {
            InitializeComponent();
            DisplayRgbTable.IsChecked = true;
            FreezeRefresh.IsChecked   = false;

            for (int i = 0; i < LedConstants.LED_COUNT; ++i)
            {
                var rectangle = _leds[i] = new LedControl();
                rectangle.SetValue(Grid.ColumnProperty, _ledGridPosition[i][0]);
                rectangle.SetValue(Grid.RowProperty, _ledGridPosition[i][1]);

                ArrayGrid.Children.Add(rectangle);
            }
        }