private void button1_Click(object sender, EventArgs e) { LEDStatusLightingUtil ledStatusLightingUtil = LEDStatusLightingUtil.Instance; string ascii = txtASCIIStringToSend.Text; for (int i = 0; i < 10; i++) { ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfTTApplicatorIsReady, null); Thread.Sleep(1000); } ledStatusLightingUtil.InitializeTTApplicator_Async(); Thread.Sleep(1000); ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfTTApplicatorIsReady, null); //ledStatusLightingUtil.SendASCIICommand(ascii); //LEDStatusLightingUtil ledStatusLightingUtil = LEDStatusLightingUtil.Instance; //for (int i = 0; i < 100; i++) //{ // ledStatusLightingUtil.InitializeMUBApplicator_Async(); // ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfMUBApplicatorIsReady, CheckIfMUBApplicatorIsReady_Callback); // ledStatusLightingUtil.StartMUBApplicator_Async(); // ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfMUBApplicatorIsStarted, CheckIfMUBApplicatorIsStarted_Callback); // ledStatusLightingUtil.InitializeTTApplicator_Async(); // ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfTTApplicatorIsReady, CheckIfTTApplicatorIsReady_Callback); // ledStatusLightingUtil.StartTTApplicator_Async(); // ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfTTApplicatorIsStarted, CheckIfTTApplicatorIsStarted_Callback); //} }
private void btnCheckIfTTApplicatorIsStarted_Click(object sender, EventArgs e) { SetTTButtonsStatus(false); LEDStatusLightingUtil ledStatusLightingUtil = LEDStatusLightingUtil.Instance; ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfTTApplicatorIsStarted, CheckIfTTApplicatorIsStarted_Callback); }
private void btnCheckIfMUBDoorIsFullyOpen_Click(object sender, EventArgs e) { SetMUBButtonsStatus(false); LEDStatusLightingUtil ledStatusLightingUtil = LEDStatusLightingUtil.Instance; ledStatusLightingUtil.SendCommand_Async(EnumCommands.CheckIfMUBDoorIsFullyOpen, CheckIfMUBDoorIsFullyOpen_Callback); }