Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 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();
     }
 }