Ejemplo n.º 1
0
        private void programLoad_Click(object sender, EventArgs e)
        {
            RPN_Functions fn   = _stopIfRunning();
            string        name = myRPN.getSD().getWindowsFolderName();

            openFileDialog1.InitialDirectory = name;
            openFileDialog1.FileName         = "";
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                // Simulator - only (helps debugging!)
                FileInfo fi = new FileInfo(openFileDialog1.FileName);
                myRPN.getSD().setFolder_P(fi.DirectoryName);
                fn.loadProgram(fi.FullName);
                myRPN.current_Receiver.tick(0); // needed to redraw!
            }
            timer1.Enabled = true;
        }