private void scenarioStartButton_Click(object sender, EventArgs e) { if (!System.IO.File.Exists(schemaTextBox.Text)) { MessageBox.Show("Schema file must exist."); return; } if (scenarioTextBox.Text == "") { MessageBox.Show("Must select a scenario file"); return; } simEngine.StartScenCon(schemaTextBox.Text, scenarioTextBox.Text, 0, @"C:\", null); scenarioStartButton.Enabled = false; startReplayButton.Enabled = false; }
public void StartSimulationPaused(string schemaFile, string scenarioFile, string replayFile) { scenarioState = ScenarioState.LOADING; simEngine.StartScenCon(schemaFile, scenarioFile, 1, debugFile, replayFile);//start as paused }