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