private void btnStartPoll_Click(object sender, EventArgs e) { if (HighLevelInterface.StartPollGPIStatus(GPIStatusCallback) == Result.OK) { tsStatus.Text = "StartPollGPIStatus OK!"; } else { tsStatus.Text = "StartPollGPIStatus Failed!"; } }