public LedPanelForm(LedPanelContext ledContext)
        {
            InitializeComponent();

            _context            = ledContext;
            _panelSize          = ledContext.Size;
            this.DoubleBuffered = true;
        }
        private void AppInit()
        {
            comboBox1.Items.AddRange(SerialPort.GetPortNames());
            _fpsEngine  = new FpsEngine(FpsHandler);
            _ledContext = new LedPanelContext(30, 5);
            _protocol   = new GlediatorProtocol();
            _ledView    = new LedPanelForm(_ledContext);
            _ledView.Show();

            _randomLedTimer          = new Timer();
            _randomLedTimer.Interval = 100;
            _randomLedTimer.Tick    += _randomLedTimer_Tick;
            //_randomLedTimer.Start();
            _random    = new Random();
            _colorList = new List <Color>();
            _colorList.Add(Color.Black);
            _colorList.Add(Color.FromArgb(0, 0, 64));
            _colorList.Add(Color.FromArgb(64, 0, 0));
            _colorList.Add(Color.FromArgb(0, 64, 0));
        }