Пример #1
0
        private void SetBox(MonitorBoxCtrl box, int showRow, int showColumn)
        {
            //if (box.IsEnabled && !box.IsPlayVideo)
            //    box.PlayVideo();

            if (box.IsLocal)
            {
                return;
            }

            if (box.Visible)
            {
                if (box.IsEnabled && !box.IsPlayVideo)
                {
                    box.PlayVideo();
                }
            }
            else if (this.IsStopHideVideo)
            {
                if (box.IsPlayVideo)
                {
                    box.StopVideo();
                }
            }
        }
Пример #2
0
        private void DoAfterChanged(object sender, IConfig config)
        {
            MonitorBoxCtrl curBox = ActiveBox;

            if (curBox != null)
            {
                if (mActiveBoxMonitorState > 0)
                {
                    curBox.Init();
                    if (mActiveBoxMonitorState > 1)
                    {
                        curBox.Start();
                    }
                }
                else if (mActiveBoxVideoState)
                {
                    curBox.PlayVideo();
                }
            }
        }