private void btnOpen_Click(object sender, EventArgs e) { m_dwDevice = PMAC.PmacSelect(0); m_bDriverOpen = PMAC.OpenPmacDevice(m_dwDevice); if (m_bDriverOpen == 0) { WriteLog("장치가 OPEN되지 않았습니다.."); return; } WriteLog("장치가 OPEN되었습니다.."); }
private void btnOpen_Click(object sender, EventArgs e) { // Todo : 테스트에 따라 아래를 사용 //_deviceId = PMAC.PmacSelect(0); _deviceId = 0; _driverOpen = PMAC.OpenPmacDevice(_deviceId); if (_driverOpen == 0) { WriteLog("장치가 OPEN되지 않았습니다.."); return; } _pmacCommand = new PmacCommnad(_deviceId); _pmacCommand.LoggerMessage += _pmacCommand_LoggerMessage; tslStatus.BackColor = Color.Green; WriteLog("장치가 OPEN되었습니다.."); }