Example #1
0
        /// <summary>
        /// Initializes a new instance of the UserInterfaceChecker class to be linked to an existing checker object.
        /// </summary>
        /// <param name="checker">Main checker where the new checker will be linked.</param>
        public UserInterfaceChecker(UserInterfaceChecker checker)
        {
            highlightColors    = checker.highlightColors;
            disabledIssueTypes = checker.disabledIssueTypes;
            issues             = checker.issues;
            writer             = checker.writer;

            OutputDir       = checker.OutputDir;
            HighlightIssues = checker.HighlightIssues;
            HighlightMargin = checker.HighlightMargin;
            HighlightWidth  = checker.HighlightWidth;
        }
Example #2
0
        /// <summary>
        /// Make sure that the control is visible.
        /// </summary>
        /// <param name="checker">Checker object.</param>
        /// <param name="control">The control to be checked.</param>
        /// <param name="restoreControl">The state to be restored. <b>null</b> if none.</param>
        /// <returns><b>true</b> if the control was set visible.</returns>
        public bool Show(UserInterfaceChecker checker, object control, out object restoreControl)
        {
            for (int i = 0; i < Count; i++)
            {
                if (this[i].Show(checker, control, out restoreControl))
                {
                    return(true);
                }
            }

            restoreControl = null;
            return(false);
        }
Example #3
0
        /// <summary>
        /// Make sure that the control is visible.
        /// </summary>
        /// <param name="checker">Checker object.</param>
        /// <param name="control">The control to be checked.</param>
        /// <returns><b>true</b> if the control was set visible.</returns>
        public bool Show(UserInterfaceChecker checker, object control)
        {
            object restoreControl;

            if (Show(checker, control, out restoreControl))
            {
                RestoreControl = restoreControl;
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #4
0
 /// <summary>
 /// Make sure that the control is visible.
 /// </summary>
 /// <param name="checker">Checker object.</param>
 /// <param name="control">The control to be checked.</param>
 /// <param name="restoreControl">The state to be restored. <b>null</b> if none.</param>
 /// <returns><b>true</b> if the control was set visible.</returns>
 public virtual bool Show(UserInterfaceChecker checker, object control, out object restoreControl)
 {
     restoreControl = null;
     return(false);
 }