コード例 #1
0
        public DocumentDataExtractionUserControl()
        {
            InitializeComponent();

            var serviceProvider = DependencyResolver.GetServices().BuildServiceProvider();

            documentDataBusinessLogic = serviceProvider.GetService <IDocumentDataBusinessLogic>();
            resultFormatter           = serviceProvider.GetService <IResultFormatter>();

            documentDataDisplayUserControl = new DocumentDataDisplayUserControl();
            panelDocumentDataDisplayUserControl.Controls.Add(documentDataDisplayUserControl);

            UpdateRunButtonEnabledProperty();
            SetStatusLabel("Waiting for input", Color.DodgerBlue);
        }
コード例 #2
0
        public GlobalDocumentDataBuilderUserControl()
        {
            InitializeComponent();

            var serviceProvider = DependencyResolver.GetServices().BuildServiceProvider();

            documentDataBusinessLogic = serviceProvider.GetService <IDocumentDataBusinessLogic>();
            featureSelector           = serviceProvider.GetService <IFeatureSelector>();
            topicPredictor            = serviceProvider.GetService <ITopicPredictor>();

            documentDataDisplayUserControl = new DocumentDataDisplayUserControl();
            panelDocumentDataDisplayUserControl.Controls.Add(documentDataDisplayUserControl);

            UpdateRunButtonEnabledProperty();
            SetStatusLabel("Waiting for input", Color.DodgerBlue);

            filepathsToUseForDocumentData = new List <string>();
        }