예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ESPRoutines ESP = new ESPRoutines();

            while (ESP.COMM_PORT == "")
            {
                MessageBox.Show("Must select the COM port your device is on.");
                ESP = new ESPRoutines();
            }

            if (ESP.COMM_PORT != "EXIT")
            {
                Application.Run(new frmMain(ESP));
            }
        }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ESPRoutines ESP = new ESPRoutines();

            while (ESP.COMM_PORT == "")
            {
                MessageBox.Show("必须选择COM端口设备。");
                ESP = new ESPRoutines();
            }

            if (ESP.COMM_PORT != "EXIT")
            {
                Application.Run(new frmMain(ESP));
            }
        }
예제 #3
0
        private ESPRoutines _ESP;   // Wrapper for AMPY invocations

        public Manager(ESPRoutines ESP)
        {
            _ESP = ESP;
            InitializeComponent();
        }
예제 #4
0
 public frmMain(ESPRoutines ESP)
 {
     _ESP = ESP;
     InitializeComponent();
 }