private void DisplayServerState()
{
labelCurrentStatus.Text = EnumStrings.GetStateString(_application.ServerState);
switch (_application.ServerState)
{
case eServerState.hStateRunning:
buttonStartStop.Text = Strings.Localize("Pause");
buttonStartStop.Enabled = true;
break;
case eServerState.hStateStopped:
buttonStartStop.Text = Strings.Localize("Resume");
buttonStartStop.Enabled = true;
break;
default:
buttonStartStop.Enabled = false;
break;
}
}