public ExtendedList(
            Dictionary<ConsoleKey, TResult> choices,
            IDefaultValueComponent<TResult> defaultValueComponent,
            IConfirmComponent<TResult> confirmComponent,
            IRenderQuestionComponent displayQuestion,
             IWaitForInputComponent<StringOrKey> inputComponent,
            IParseComponent<ConsoleKey, TResult> parseComponent,
            IRenderChoices<TResult> renderChoices,
            IValidateComponent<TResult> validationResultComponent,
            IValidateComponent<ConsoleKey> validationInputComponent,
            IDisplayErrorComponent errorComponent,
            IOnKey onKey)
        {
            _choices = choices;
            _confirmComponent = confirmComponent;
            _displayQuestion = displayQuestion;
            _input = inputComponent;
            _parseComponent = parseComponent;
            _renderChoices = renderChoices;
            _validationInputComponent = validationInputComponent;
            _validationResultComponent = validationResultComponent;
            _errorComponent = errorComponent;
            _defaultValueComponent = defaultValueComponent;
            _onKey = onKey;

            Console.CursorVisible = false;
        }
Beispiel #2
0
        public PagedRawList(
            IPagingComponent <TResult> pagingComponent,
            IConfirmComponent <TResult> confirmComponent,
            IRenderQuestionComponent displayQuestion,
            IWaitForInputComponent <StringOrKey> inputComponent,
            IParseComponent <string, TResult> parseComponent,
            IRenderChoices <TResult> renderChoices,
            IValidateComponent <TResult> validationResultComponent,
            IValidateComponent <string> validationInputComponent,
            IDisplayErrorComponent errorComponent,
            IOnKey onKey,
            IConsole console)
        {
            _pagingComponent           = pagingComponent;
            _confirmComponent          = confirmComponent;
            _displayQuestion           = displayQuestion;
            _inputComponent            = inputComponent;
            _parseComponent            = parseComponent;
            _renderChoices             = renderChoices;
            _validationInputComponent  = validationInputComponent;
            _validationResultComponent = validationResultComponent;
            _errorComponent            = errorComponent;
            _onKey   = onKey;
            _console = console;

            Console.CursorVisible = false;
        }
        public PagedCheckbox(
            IPagingComponent <Selectable <TResult> > pagingComponent,
            IConfirmComponent <TList> confirmComponent,
            IRenderQuestionComponent displayQuestion,
            IWaitForInputComponent <StringOrKey> inputComponent,
            IParseComponent <Dictionary <int, List <Selectable <TResult> > >, TList> parseComponent,
            IRenderChoices <TResult> renderChoices,
            IValidateComponent <TList> validationComponent,
            IDisplayErrorComponent errorComponent,
            IOnKey onKey)
        {
            _pagingComponent          = pagingComponent;
            _confirmComponent         = confirmComponent;
            _displayQuestionComponent = displayQuestion;
            _input               = inputComponent;
            _parseComponent      = parseComponent;
            _renderchoices       = renderChoices;
            _validationComponent = validationComponent;
            _errorComponent      = errorComponent;
            _onKey               = onKey;

            Console.CursorVisible = false;
        }
Beispiel #4
0
        public InputKey(
            IConfirmComponent <TResult> confirmComponent,
            IRenderQuestionComponent displayQuestion,
            IWaitForInputComponent <StringOrKey> inputComponent,
            IParseComponent <ConsoleKey, TResult> parseComponent,
            IValidateComponent <TResult> validationResultComponent,
            IValidateComponent <ConsoleKey> validationValueComponent,
            IDisplayErrorComponent errorComponent,
            IDefaultValueComponent <TResult> defaultComponent,
            IOnKey onKey)
        {
            _confirmComponent          = confirmComponent;
            _displayQuestion           = displayQuestion;
            _input                     = inputComponent;
            _parseComponent            = parseComponent;
            _validationResultComponent = validationResultComponent;
            _validationValueComponent  = validationValueComponent;
            _errorComponent            = errorComponent;
            _defaultValueComponent     = defaultComponent;
            _onKey                     = onKey;

            Console.CursorVisible = true;
        }