private void CheckIfMUBIsRemoved_Callback(object sender, EnumMUBStatus status) { LEDStatusLightingUtil.Instance.MUBStatusUpdated -= CheckIfMUBIsRemoved_Callback; if (status == EnumMUBStatus.Removed) { // If MUB is removed then close the MUB Door LEDStatusLightingUtil.Instance.MUBDoorStatusChanged += CloseMUBDoor_Callback; LEDStatusLightingUtil.Instance.CloseMUBDoor(); } }
private void CheckIfMUBIsPresent_Callback(object sender, EnumMUBStatus status) { LEDStatusLightingUtil.Instance.MUBStatusUpdated -= CheckIfMUBIsPresent_Callback; if (status == EnumMUBStatus.Placed) { // MUB is placed on the holder this._web.RunScript("$('.status-text').css('color','#000').text('The MUB has been placed on the holder.');"); this._web.RunScript("$('#ConfirmBtn').html('Start Applicator.');"); // Set next action to "StartMUBApplicator" this._web.RunScript("$('#lblNextAction').text('StartMUBApplicator');"); StartMUBApplicator(); } else { // MUB is not present this._web.RunScript("$('.status-text').css('color','#000').text('The MUB is not present.');"); } }