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)); } }
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)); } }
private ESPRoutines _ESP; // Wrapper for AMPY invocations public Manager(ESPRoutines ESP) { _ESP = ESP; InitializeComponent(); }
public frmMain(ESPRoutines ESP) { _ESP = ESP; InitializeComponent(); }