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(); } } }
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(); } } }