Пример #1
0
        public Form1(Params.ParamsManager paramsManager, BridgeNs.Bridge bridge)
        {
            InitializeComponent();
            m_bridge         = bridge;
            m_paramsManager  = paramsManager;
            m_isVideoRunning = false;

            //instantiate the rest of the forms
            m_paramsForm    = new ParametersForm(paramsManager);
            m_colorsManager = new ColorsManager(livePictureBox, averagePictureBox, diffPictureBox, this);
        }
Пример #2
0
        private void AlarmNotification()
        {
            ColorsManager CM = m_colorsManager;

            while (true)
            {
                try
                {
                    Invoke((MethodInvoker) delegate
                    {
                        m_colorsManager.SetColors(m_alaramIsOn);
                    });
                }
                catch
                {
                    //do nothing
                }
                Thread.Sleep(500);
            }
        }