Exemplo n.º 1
0
        private void pausePlan()
        {
            if (_planStreamer == null)
            {
                return;
            }

            if (_planStreamer.IsStreaming)
            {
                _planStreamer.Stop();
                setPauseControl(isPaused: true);
            }
            else
            {
                _planStreamer.Continue();
                setPauseControl(isPaused: false);
            }
        }
Exemplo n.º 2
0
        private void pausePlan()
        {
            if (_planStreamer == null)
            {
                return;
            }

            if (_planStreamer.IsStreaming)
            {
                _planStreamer.Stop();
                StopPlan.IsEnabled           = true;
                PlanProgressSlider.IsEnabled = true;
                setPauseControl(isPaused: true);
            }
            else
            {
                _planStreamer.Continue();
                StopPlan.IsEnabled           = false;
                PlanProgressSlider.IsEnabled = false;
                setPauseControl(isPaused: false);
            }
        }