Exemplo n.º 1
0
 public Editor(
     IFileSystem fileSystem,
     IFileSystemErrorView dialogView,
     IQueryHistory queryHistory,
     IQueryCompiler queryCompiler,
     IQueryErrorListener queryErrorListener,
     IQuerySuggestions querySuggestions)
 {
     _fileSystem         = fileSystem;
     _dialogView         = dialogView;
     _queryHistory       = queryHistory;
     _queryCompiler      = queryCompiler;
     _queryErrorListener = queryErrorListener;
     _querySuggestions   = querySuggestions;
 }
Exemplo n.º 2
0
        public QueryEditorPresenter(
            IQueryEditorView view,
            IFileSystemErrorView dialogErrorView,
            IQueryHistory appHistory,
            IQueryCompiler queryCompiler,
            IQueryErrorListener queryErrorListener,
            IQuerySuggestions querySuggestions,
            IEditor editor)
        {
            View                = view;
            _dialogErrorView    = dialogErrorView;
            _queryCompiler      = queryCompiler;
            _queryErrorListener = queryErrorListener;
            _querySuggestions   = querySuggestions;
            _appHistory         = appHistory;
            _editor             = editor;

            SubscribeTo(View, "View");

            _queryCompiler.Views.Changed += QueryViewsOnChanged;
            UpdateViews();
        }