BrrrBayBay.PwmLogic.MainForm.updateRunningState C# (CSharp) Метод

updateRunningState() приватный Метод

Updates the Form with the current running state
private updateRunningState ( ) : void
Результат void
        private void updateRunningState()
        {
            if (connector.Running)
            {
                startPwmButton.Enabled = false;
                stopPwmButton.Enabled = true;
                this.runStateLabel.Text = runningStatusString;

                jitterLabel.Visible = true;
                jitterCount = 0;
                setJitterCount();
            }
            else
            {
                if (mainControl != null)
                {
                    startPwmButton.Enabled = true;
                    stopPwmButton.Enabled = false;
                }
                else
                {
                    startPwmButton.Enabled = false;
                    stopPwmButton.Enabled = false;
                }
                this.runStateLabel.Text = notRunningStatusString;
                jitterLabel.Visible = false;
                jitterCount = 0;
            }
        }