Пример #1
0
        private void Stop()
        {
            simEngine.Stop();
            UpdateForm();
            bbClient = null;
            ObjectCheckBox();

            simulationModelButton.Enabled  = true;
            simulationModelTextBox.Enabled = true;
            serverPortTextBox.Enabled      = true;
            //stop logging thread
            if (checkBoxReplayLog.Checked)
            {
                simEngine.StopReplayLogger();
            }
            checkBoxReplayLog.Enabled = true;
            //historyLogger.StopThread();
            startReplayButton.Enabled = false;
        }
Пример #2
0
 public void StopServer()
 {
     if ((scenarioState == ScenarioState.STOPPED && replayState != ScenarioState.STOPPED) ||
         (scenarioState != ScenarioState.STOPPED && replayState == ScenarioState.STOPPED))
     {
         StopScenario(true);
     }
     serverState = ServerState.STOPPED;
     if (ServerOptions.EventLogType != "NOLOG")
     {
         simEngine.StopReplayLogger();
     }
     simEngine.StopTextChatServer();
     simEngine.StopWhiteboardServer();
     simEngine.StopVoiceServer();
     simEngine.StopViewManager();
     simEngine.Stop();
     eventClient = null;
     currentTime = 0;
     isReady     = false;
 }