private void CHECK_WAIT_FOR_EXTERNAL_TRIGGER_CheckedChanged(object sender, EventArgs e) { string Command = ""; int flags = 0; string Return = ""; if (CHECK_WAIT_FOR_EXTERNAL_TRIGGER.Checked) { Command = "et 1\r\n"; } else { Command = "et 0\r\n"; } m_samlight.ScFlashCommand(Command, flags, ref Return); }