private void ouvrirToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "XML|*.xml"; if (ofd.ShowDialog() == DialogResult.OK) { string fileName = ofd.FileName; simulationController = new SimulationController(fileName); display.Refresh(); updateText(); resetParameters(); } }
private void ouvrirToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "XML|*.xml"; if (ofd.ShowDialog() == DialogResult.OK) { string fileName= ofd.FileName; simulationController = new SimulationController(fileName); display.Refresh(); updateText(); resetParameters(); } }