public MainViewModel() { var config = Configuration.Default.WithCss().WithRequesters(setup => { setup.IsNavigationEnabled = true; setup.IsResourceLoadingEnabled = true; }).WithJavaScript(); _context = BrowsingContext.New(config); _profiler = new ProfilerViewModel(_context); _errors = new ErrorsViewModel(_context); _dom = new DOMViewModel(); _query = new QueryViewModel(); _repl = new ReplViewModel(); _settings = new SettingsViewModel(); _statistics = new StatisticsViewModel(); _tree = new TreeViewModel(); _sheets = new SheetViewModel(); _cts = new CancellationTokenSource(); _views = new ITabViewModel[] { _dom, _query, _repl, _statistics, _tree, _sheets }; _logs = new IEventViewModel[] { _profiler, _errors }; }
public MainViewModel() { var events = new EventAggregator(); var config = new Configuration(events: events).WithCss().WithDefaultLoader(m => { m.IsNavigationEnabled = true; m.IsResourceLoadingEnabled = true; }); context = BrowsingContext.New(config); profiler = new ProfilerViewModel(events); errors = new ErrorsViewModel(events); dom = new DOMViewModel(); query = new QueryViewModel(); repl = new ReplViewModel(); settings = new SettingsViewModel(); statistics = new StatisticsViewModel(); tree = new TreeViewModel(); sheets = new SheetViewModel(); cts = new CancellationTokenSource(); views = new ITabViewModel[] { dom, query, repl, statistics, tree, sheets }; logs = new IEventViewModel[] { profiler, errors }; }
public MainViewModel() { var config = Configuration.Default .WithCss() .WithCookies() .WithJs() .WithDefaultLoader(new LoaderOptions { IsNavigationDisabled = true, IsResourceLoadingEnabled = true, }); _context = BrowsingContext.New(config); _profiler = new ProfilerViewModel(_context); _errors = new ErrorsViewModel(_context); _dom = new DOMViewModel(); _query = new QueryViewModel(); _repl = new ReplViewModel(); _settings = new SettingsViewModel(); _statistics = new StatisticsViewModel(); _tree = new TreeViewModel(); _sheets = new SheetViewModel(); _cts = new CancellationTokenSource(); _views = new ITabViewModel[] { _dom, _query, _repl, _statistics, _tree, _sheets }; _logs = new IEventViewModel[] { _profiler, _errors }; }
public MainViewModel() { var events = new EventAggregator(); var requester = new IRequester[] { new DataRequester(), new HttpRequester() }; var config = new Configuration(events: events).WithCss().WithDefaultLoader(m => { m.IsNavigationEnabled = true; m.IsResourceLoadingEnabled = true; }, requester); context = BrowsingContext.New(config); profiler = new ProfilerViewModel(events); errors = new ErrorsViewModel(events); dom = new DOMViewModel(); query = new QueryViewModel(); repl = new ReplViewModel(); settings = new SettingsViewModel(); statistics = new StatisticsViewModel(); tree = new TreeViewModel(); sheets = new SheetViewModel(); cts = new CancellationTokenSource(); views = new ITabViewModel[] { dom, query, repl, statistics, tree, sheets }; logs = new IEventViewModel[] { profiler, errors }; }