Exemplo n.º 1
0
        public App()
        {
            var statusViewerViewModel = new StatusViewerViewModel();
            var statusViewer = new SavedWebsiteEdgesViewer();
            statusViewer.DataContext = statusViewerViewModel;

            statusViewer.Show();

            var displayTheSavedEdges = new DisplaySavedEdgesProcess(statusViewerViewModel, Dispatcher);
            new ParseLinksFromWebSiteProcess().DO(displayTheSavedEdges);
        }
Exemplo n.º 2
0
        public App()
        {
            Startup += (sndr, o) =>
                           {
                               var vm = new StatusViewerViewModel();
                               var window = new Window1();
                               window.DataContext = vm;

                               window.Show();

                               var process = new ParseLinksFromWebSiteProcess();
                               var displaySavedEdgesProcess = new DisplaySavedEdgesProcess(vm, Dispatcher);
                               process.DO(displaySavedEdgesProcess);
                           };
        }