internal ComplexControlGenerator(TypeInfoDataBase dataBase, DatabaseLoadingInfo loadingInfo, MshExpressionFactory expressionFactory, List<ControlDefinition> controlDefinitionList, FormatErrorManager resultErrorManager, int enumerationLimit, TerminatingErrorContext errorContext) { this.db = dataBase; this.loadingInfo = loadingInfo; this.expressionFactory = expressionFactory; this.controlDefinitionList = controlDefinitionList; this.errorManager = resultErrorManager; this.enumerationLimit = enumerationLimit; this.errorContext = errorContext; }
internal ComplexControlGenerator(TypeInfoDataBase dataBase, DatabaseLoadingInfo loadingInfo, MshExpressionFactory expressionFactory, List <ControlDefinition> controlDefinitionList, FormatErrorManager resultErrorManager, int enumerationLimit, TerminatingErrorContext errorContext) { this.db = dataBase; this.loadingInfo = loadingInfo; this.expressionFactory = expressionFactory; this.controlDefinitionList = controlDefinitionList; this.errorManager = resultErrorManager; this.enumerationLimit = enumerationLimit; this.errorContext = errorContext; }
internal void Initialize(MshExpressionFactory expressionFactory, TypeInfoDataBase db) { _expressionFactory = expressionFactory; _typeInfoDatabase = db; // Initialize Format Error Manager. FormatErrorPolicy formatErrorPolicy = new FormatErrorPolicy(); formatErrorPolicy.ShowErrorsAsMessages = _typeInfoDatabase.defaultSettingsSection.formatErrorPolicy.ShowErrorsAsMessages; formatErrorPolicy.ShowErrorsInFormattedOutput = _typeInfoDatabase.defaultSettingsSection.formatErrorPolicy.ShowErrorsInFormattedOutput; _errorManager = new FormatErrorManager(formatErrorPolicy); }
internal ComplexControlGenerator(TypeInfoDataBase dataBase, DatabaseLoadingInfo loadingInfo, PSPropertyExpressionFactory expressionFactory, List <ControlDefinition> controlDefinitionList, FormatErrorManager resultErrorManager, int enumerationLimit, TerminatingErrorContext errorContext) { _db = dataBase; _loadingInfo = loadingInfo; _expressionFactory = expressionFactory; _controlDefinitionList = controlDefinitionList; _errorManager = resultErrorManager; _enumerationLimit = enumerationLimit; _errorContext = errorContext; }
private void InitializeFormatErrorManager() { FormatErrorPolicy formatErrorPolicy = new FormatErrorPolicy(); if ((this.parameters != null) && this.parameters.showErrorsAsMessages.HasValue) { formatErrorPolicy.ShowErrorsAsMessages = this.parameters.showErrorsAsMessages.Value; } else { formatErrorPolicy.ShowErrorsAsMessages = this.dataBaseInfo.db.defaultSettingsSection.formatErrorPolicy.ShowErrorsAsMessages; } if ((this.parameters != null) && this.parameters.showErrorsInFormattedOutput.HasValue) { formatErrorPolicy.ShowErrorsInFormattedOutput = this.parameters.showErrorsInFormattedOutput.Value; } else { formatErrorPolicy.ShowErrorsInFormattedOutput = this.dataBaseInfo.db.defaultSettingsSection.formatErrorPolicy.ShowErrorsInFormattedOutput; } this.errorManager = new FormatErrorManager(formatErrorPolicy); }
internal ComplexViewObjectBrowser(FormatErrorManager resultErrorManager, PSPropertyExpressionFactory mshExpressionFactory, int enumerationLimit) { _errorManager = resultErrorManager; _expressionFactory = mshExpressionFactory; _enumerationLimit = enumerationLimit; }
private void InitializeFormatErrorManager() { FormatErrorPolicy formatErrorPolicy = new FormatErrorPolicy(); if (parameters != null && parameters.showErrorsAsMessages.HasValue) { formatErrorPolicy.ShowErrorsAsMessages = parameters.showErrorsAsMessages.Value; } else { formatErrorPolicy.ShowErrorsAsMessages = this.dataBaseInfo.db.defaultSettingsSection.formatErrorPolicy.ShowErrorsAsMessages; } if (parameters != null && parameters.showErrorsInFormattedOutput.HasValue) { formatErrorPolicy.ShowErrorsInFormattedOutput = parameters.showErrorsInFormattedOutput.Value; } else { formatErrorPolicy.ShowErrorsInFormattedOutput = this.dataBaseInfo.db.defaultSettingsSection.formatErrorPolicy.ShowErrorsInFormattedOutput; } _errorManager = new FormatErrorManager(formatErrorPolicy); }
internal ComplexViewObjectBrowser(FormatErrorManager resultErrorManager, MshExpressionFactory mshExpressionFactory, int enumerationLimit) { _errorManager = resultErrorManager; _expressionFactory = mshExpressionFactory; _enumerationLimit = enumerationLimit; }
internal void Initialize(MshExpressionFactory expressionFactory, TypeInfoDataBase db) { this.expressionFactory = expressionFactory; this.typeInfoDatabase = db; FormatErrorPolicy formatErrorPolicy = new FormatErrorPolicy { ShowErrorsAsMessages = this.typeInfoDatabase.defaultSettingsSection.formatErrorPolicy.ShowErrorsAsMessages, ShowErrorsInFormattedOutput = this.typeInfoDatabase.defaultSettingsSection.formatErrorPolicy.ShowErrorsInFormattedOutput }; this.errorManager = new FormatErrorManager(formatErrorPolicy); }
internal ComplexViewObjectBrowser(FormatErrorManager resultErrorManager, MshExpressionFactory mshExpressionFactory, int enumerationLimit) { this.errorManager = resultErrorManager; this.expressionFactory = mshExpressionFactory; this.enumerationLimit = enumerationLimit; }