Beispiel #1
0
        private void InitializeEventUpdaterViewModel(IConnectionParametersModel connectionViewModel,
                                                     IRegisteredEventsViewModel registeredEventsViewModel,
                                                     IChannelsViewModel channelsViewModel,
                                                     IUrlViewer urlViewer,
                                                     IWebRequestFactory webRequestFactory,
                                                     IDispatcherInvokator dispatcherInvokator)
        {
            var eventUpdaterModel = new EventsUpdaterModel(connectionViewModel, channelsViewModel, urlViewer, webRequestFactory);

            var eventUpdaterViewModel = new EventsUpdaterViewModel(eventUpdaterModel, registeredEventsViewModel, dispatcherInvokator);

            MainWindowViewModel.EventsUpdaterViewModel = eventUpdaterViewModel;
        }
Beispiel #2
0
        private void InitialzieArchiveEventsViewModel(IConnectionParametersModel connectionViewModel,
                                                      IWebRequestFactory webRequestFactory,
                                                      IRegisteredEventsViewModel registeredEventViewModel,
                                                      IChannelsViewModel channelsViewModel,
                                                      IUrlViewer urlViewer)
        {
            var archiveEventsModel = new ArchiveEventsModel(connectionViewModel, urlViewer, webRequestFactory);

            var archiveEventsViewModel = new ArchiveEventsViewModel(archiveEventsModel, registeredEventViewModel,
                                                                    channelsViewModel);

            MainWindowViewModel.ArchiveEventsViewModel = archiveEventsViewModel;
        }
 public EventsUpdaterModel(IConnectionParametersModel connectionParametersModel, IChannelsViewModel channelsViewModel,
                           IUrlViewer urlViewer, IWebRequestFactory webRequestFactory)
 {
     _connectionParametersModel = connectionParametersModel;
     _channelsViewModel         = channelsViewModel;
     _urlViewer              = urlViewer;
     _webRequestFactory      = webRequestFactory;
     _selectedEventforFilter = new EventInfo();
     _backgroundThread       = new Thread(EventsSubscribeThread)
     {
         IsBackground = true
     };
 }
Beispiel #4
0
        private RegisteredEventsViewModel InitializeRegistereEventsView(IConnectionParametersModel connectionViewModel, IUrlViewer urlViewer,
                                                                        IWebRequestFactory webRequestFactory)
        {
            var registeredEventsModel    = new RegisteredEventsModelModel(connectionViewModel, urlViewer, webRequestFactory);
            var registeredEventViewModel = new RegisteredEventsViewModel(registeredEventsModel);

            MainWindowViewModel.RegisteredEventsViewModel = registeredEventViewModel;

            return(registeredEventViewModel);
        }
Beispiel #5
0
        private ChannelsViewModel InitializeChannelsViewModel(IConnectionParametersModel connectionViewModel, IUrlViewer urlViewer, IWebRequestFactory webRequestFactory)
        {
            var channelsModel = new ChannelsModelModel(connectionViewModel, urlViewer, webRequestFactory);

            var channelsViewModel = new ChannelsViewModel(channelsModel);

            MainWindowViewModel.ChannelsViewModel = channelsViewModel;

            return(channelsViewModel);
        }
 public ArchiveEventsModel(IConnectionParametersModel connectionParametersModel, IUrlViewer urlViewer, IWebRequestFactory webRequestFactory)
 {
     _connectionParametersModel = connectionParametersModel;
     _urlViewer         = urlViewer;
     _webRequestFactory = webRequestFactory;
 }
 public ChannelsModelModel(IConnectionParametersModel connectionParametersModel, IUrlViewer urlViewer, IWebRequestFactory webRequestFactory)
 {
     _connectionParametersModel = connectionParametersModel;
     _urlViewer         = urlViewer;
     _webRequestFactory = webRequestFactory;
 }