コード例 #1
0
        public MainPresenter(IMainView view, ITagView tagger, ITagService service, ICSVView csv, ISearchService searcher, FolderService folder, IStatisticsService dataset, ITaggedStatisticsService corpus, IConcordanceService concordancer, INGramService ngrammer)
        {
            this._tagger       = tagger;
            this._service      = service;
            this._main         = view;
            this._csv          = csv;
            this._searcher     = searcher;
            this._folder       = folder;
            this._dataset      = dataset;
            this._corpus       = corpus;
            this._concordancer = concordancer;
            this._ngrammer     = ngrammer;

            _main.FindClick         += _view_FindClick;
            _main.OpenIndexedCorpus += _view_OpenIndexedCorpus;
            _main.ConcordanceClick  += _main_ConcordanceClick;
            _main.NGramClick        += _main_NGramClick;
            _main.KeywordClick      += _main_KeywordClick;
            _main.LoadStatistics    += _main_LoadStatistics;
            _main.ExtractInfoClick  += _main_ExtractInfoClick;
            _main.BuildIndexClick   += _main_BuildIndexClick;
            _main.CheckNgramState   += _main_CheckNgramState;
            _main.LoadMore          += _main_LoadMore;
            _folder.CheckFolder();
        }