Пример #1
0
        public void ResetServer()
        {
            if (scenarioState != ScenarioState.STOPPED)
            {
                StopScenario(false);
            }
            if (replayState != ScenarioState.STOPPED)
            {
                StopReplay();
            }

            if (ServerOptions.EventLogType != "NOLOG")
            {
                simEngine.StopReplayLogger();
            }
            simEngine.StopTextChatServer();
            simEngine.StopWhiteboardServer();
            simEngine.StopVoiceServer();

            simEngine.Reset();
            currentTime = 0;
            isReady     = false;
            log         = String.Empty;
        }
Пример #2
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;
        }