예제 #1
0
        /// <summary>
        /// detects whether the diffusion lid is lowered
        /// </summary>
        private bool IsDiffusionLidProperlyPositioned()
        {
            //if instrument is docked return true
            if (Controller.IsDiffusionLidDown())
                return true;


            // else Prompt to lower diffusion lid.
            string message = GetText(DiagnosticResources.LOWER_DIFFUSION_LID, DiagnosticResources.PRESS_ANY_TO_CONTINUE, string.Empty);
            GetAnyKey(message);

            LCD.Display( "" );

            // if diffusion lid is down return true
            if ( Controller.IsDiffusionLidDown() )
                return true;

            // else report the results and return false;
            ReportDiagnostic( DiagnosticResources.NO_DIFFUSION_LID_DETECT, true, true );
            return false;  
        }