コード例 #1
0
 public HomeController(
     IOptions <FileContentTypes> fileContentTypesOptions,
     ILanguageContainer languageContainer,
     IExpressionExtractor expressionExtractor,
     IUserSessionContainer sessionContainer,
     IMathExpressionService mathService)
     : base(languageContainer)
 {
     this.fileContentTypes    = fileContentTypesOptions.Value;
     this.expressionExtractor = expressionExtractor;
     this.sessionContainer    = sessionContainer;
     this.mathService         = mathService;
 }
コード例 #2
0
        public MainWindow(
            ILanguageContainer languageContainer,
            IMathExpressionService mathService,
            IFileService fileService,
            IExpressionExtractor expressionExtractor,
            IExpressionContainer expressionContainer)
        {
            InitializeComponent();

            this.languageContainer   = languageContainer;
            this.mathService         = mathService;
            this.expressionExtractor = expressionExtractor;
            this.fileService         = fileService;
            this.expressionContainer = expressionContainer;

            this.checkedOperations = new HashSet <ExpressionOperation>();
            this.InitializeLanguages();
            this.CheckExpressionOperations();
            this.SetInitialData();
            this.InitializeExpressionTypes();
            this.ClearAlertBox();
        }