Exemple #1
0
 public HostGroupsPageViewModel(IHostGroupProxyServer hostGroupProxyServer, INavigationService navigationService,
                                IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler, IAnalyticsService analyticsService)
     : base(busyIndicatorManager, errorHandler, navigationService)
 {
     _hostGroupProxyServer = hostGroupProxyServer;
     _analyticsService     = analyticsService;
 }
 public EventsPageViewModel(IEventProxyServer eventProxyServer, IGlobalBusyIndicatorManager busyIndicatorManager,
                            IErrorHandler errorHandler, IFavoritesStorage <Trigger> favoritesStorage, IAnalyticsService analyticsService)
     : base(eventProxyServer, busyIndicatorManager, errorHandler)
 {
     _favoritesStorage = favoritesStorage;
     _analyticsService = analyticsService;
 }
Exemple #3
0
        //private readonly DateTime _newServerDate = new DateTime(2013, 10, 1);

        public LoginPageViewModel(IUserManagmentFacade userManagmentFacade, INavigationService navigationService,
                                  IGlobalBusyIndicatorManager globalBusyIndicatorManager, IApplicationSettings applicationSettings,
                                  IEventAggregator eventAggregator, IErrorHandler errorHandler, IErrorReporter errorReporter,
                                  IMessagingService messagingService, IAnalyticsService analyticsService)
        {
            _userManagmentFacade        = userManagmentFacade;
            _navigationService          = navigationService;
            _globalBusyIndicatorManager = globalBusyIndicatorManager;
            _applicationSettings        = applicationSettings;
            _eventAggregator            = eventAggregator;
            _errorHandler        = errorHandler;
            _errorReporter       = errorReporter;
            _messagingService    = messagingService;
            _analyticsService    = analyticsService;
            _navigationService   = navigationService;
            _userManagmentFacade = userManagmentFacade;

#if DEBUG
            // TODO: Remove this code
            if (!_applicationSettings.Servers.Any())
            {
                _applicationSettings.Servers.Add("InsideCactusSoft", new Server {
                    Name = "InsideCactusSoft", Uri = "http://192.168.10.38/zabbix"
                });
                _applicationSettings.Servers.Add("CactusSoft", new Server {
                    Name = "CactusSoft", Uri = "https://zabbix.inside.cactussoft.biz"
                });
                _applicationSettings.Servers.Add("techmaster.com", new Server {
                    Name = "techmaster.com", Uri = "http://zabbix.techmaster.com.br/zabbix"
                });
            }
#endif

            Initialize();
        }
 public DataPageViewModel(IGlobalBusyIndicatorManager busyIndicatorManager,
                          IErrorHandler errorHandler,
                          IDataProxyServer dataProxyServer,
                          IHostProxyServer hostProxyServer,
                          INavigationService navigationService,
                          IAnalyticsService analyticsService)
     : base(busyIndicatorManager, errorHandler, navigationService)
 {
     _dataProxyServer  = dataProxyServer;
     _analyticsService = analyticsService;
     _hostProxyServer  = hostProxyServer;
 }
 public ServersPageViewModel(INavigationService navigationService, IApplicationSettings applicationSettings,
                             IServerChecker serverChecker, IErrorHandler errorHandler, IMessagingService messagingService,
                             IGlobalBusyIndicatorManager globalBusyIndicatorManager, IAnalyticsService analyticsService)
 {
     _navigationService          = navigationService;
     _applicationSettings        = applicationSettings;
     _serverChecker              = serverChecker;
     _errorHandler               = errorHandler;
     _messagingService           = messagingService;
     _globalBusyIndicatorManager = globalBusyIndicatorManager;
     _analyticsService           = analyticsService;
 }
        public MainPageViewModel(IUserManagmentFacade userManagmentFacade, IApplicationSettings applicationSettings, INavigationService navigationService,
                                 IGlobalBusyIndicatorManager globalBusyIndicatorManager, IErrorHandler errorHandler, TriggersViewModel triggersViewModel,
                                 TimelineViewModel timelineViewModel, OverviewViewModel overviewViewModel, FavoritesViewModel favoritesViewModel, IMessagingService messagingService, IAnalyticsService analyticsService)
        {
            _userManagmentFacade        = userManagmentFacade;
            _applicationSettings        = applicationSettings;
            _navigationService          = navigationService;
            _globalBusyIndicatorManager = globalBusyIndicatorManager;
            _errorHandler      = errorHandler;
            _overviewViewModel = overviewViewModel;
            _messagingService  = messagingService;
            _analyticsService  = analyticsService;

            Items.Add(triggersViewModel);
            Items.Add(_overviewViewModel);
            Items.Add(timelineViewModel);
            Items.Add(favoritesViewModel);
        }
Exemple #7
0
 protected LoadItemsScreen(IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler)
     : base(errorHandler)
 {
     BusyIndicatorManager = busyIndicatorManager;
 }
Exemple #8
0
 public TriggersViewModel(ITriggerProxyServer triggerProxyServer, INavigationService navigationService, IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler, IFavoritesStorage <Trigger> favoritesStorage)
     : base(triggerProxyServer, navigationService, busyIndicatorManager, errorHandler)
 {
     _favoritesStorage = favoritesStorage;
 }
Exemple #9
0
 public TimelinePageViewModel(IEventProxyServer eventProxyServer, IGlobalBusyIndicatorManager busyIndicatorManager,
                              IErrorHandler errorHandler, IAnalyticsService analyticsService)
     : base(eventProxyServer, busyIndicatorManager, errorHandler)
 {
     _analyticsService = analyticsService;
 }
 protected ItemsScreenWithGraphs(IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler, INavigationService navigationService) : base(busyIndicatorManager, errorHandler, navigationService)
 {
 }
Exemple #11
0
 protected TriggersScreen(ITriggerProxyServer triggerProxyServer, INavigationService navigationService,
                          IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler)
     : base(busyIndicatorManager, errorHandler, navigationService)
 {
     TriggerProxyServer = triggerProxyServer;
 }
Exemple #12
0
 protected UpdateItemsScreen(IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler, INavigationService navigationService)
     : base(busyIndicatorManager, errorHandler)
 {
     NavigationService = navigationService;
 }
 public HostTriggersPageViewModel(ITriggerProxyServer triggerProxyServer, INavigationService navigationService,
                                  IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler, IAnalyticsService analyticsService)
     : base(triggerProxyServer, navigationService, busyIndicatorManager, errorHandler)
 {
     _analyticsService = analyticsService;
 }
 public GraphsPageViewModel(IGlobalBusyIndicatorManager busyIndicatorManager, IErrorHandler errorHandler, IGraphsProxyServer graphsProxyServer, INavigationService navigationService, IAnalyticsService analyticsService)
     : base(busyIndicatorManager, errorHandler, navigationService)
 {
     _graphsProxyServer = graphsProxyServer;
     _analyticsService  = analyticsService;
 }
Exemple #15
0
 protected EventsScreen(IEventProxyServer eventProxyServer, IGlobalBusyIndicatorManager busyIndicatorManager,
                        IErrorHandler errorHandler) : base(busyIndicatorManager, errorHandler, null)
 {
     EventProxyServer = eventProxyServer;
 }