예제 #1
0
파일: Form1.cs 프로젝트: jmprovencher/SPTR
        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();
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: jmprovencher/SPTR
 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();
     }
 }