/// <summary>
        /// Updates the GUI if the invalid flag has been set.
        /// </summary>
        /// <param name="obj"></param>
        private void UpdateGUIValues(CancellationToken token)
        {
            while (!token.IsCancellationRequested)
            {
                if (_invalidCameraValues)
                {
                    NumericFOV.Invoke((MethodInvoker)UpdateValues);
                }

                Thread.Sleep(33);
            }
        }
示例#2
0
        /// <summary>
        /// Updates the GUI if the invalid flag has been set.
        /// </summary>
        /// <param name="obj"></param>
        private void UpdateGUIValues(object obj)
        {
            while (true)
            {
                if (_invalidCameraValues)
                {
                    NumericFOV.Invoke((MethodInvoker)UpdateValues);
                }

                Thread.Sleep(33);
            }
        }