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 DoBeforeChanged(object sender, IConfig config) { mActiveBoxVideoState = false; mActiveBoxMonitorState = 0; MonitorBoxCtrl curBox = ActiveBox; if (curBox != null) { mActiveBoxVideoState = curBox.IsPlayVideo; if (curBox.IsInit) { mActiveBoxMonitorState = (curBox.IsActive ? 2 : 1); curBox.Cleanup(); } curBox.StopVideo(); } }