Ejemplo n.º 1
0
 public void SetCreateIndexController(CreateIndexController CreateIndexController)
 {
     //Setting callback class
     _CreateIndexController = CreateIndexController;
     //Loading earlier set paths
     SourceCollectionPathTextBox.Text = _CreateIndexController.GetSourceCollectionPath();
     IndexPathTextBox.Text            = _CreateIndexController.GetIndexPath();
 }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //Giving CreateIndexController the chosen ILuceneHelperImplementation and IQueryParserImplemenation
            LuceneHelper LuceneClass = new LuceneHelper();

            BooleanQueryParser    BooleanQueryParser    = new BooleanQueryParser();
            CreateIndexController CreateIndexController = new CreateIndexController(LuceneClass, BooleanQueryParser);

            //BooleanLexicalQueryParser BooleanLexicalQueryParser = new BooleanLexicalQueryParser();
            //CreateIndexController CreateIndexController = new CreateIndexController(LuceneClass, BooleanLexicalQueryParser);

            CreateIndexView CreateIndexView = new CreateIndexView();

            CreateIndexView.SetCreateIndexController(CreateIndexController);
            Application.Run(CreateIndexView);
        }