Esempio n. 1
0
 public XMLRepository(
     IEntityQuery entityQuery,
     IVETSEntityManagerView entityManagerView,
     IEntityCreate entityCreate,
     ITestExecution testExecution,
     ITestStatus testStatus,
     ITestEvents testEvents,
     ISystemLogManager logger,
     IReportService resportService,
     IApplication application,
     IVETSEntityManagerViewModelView entityManagerViewModelView,
     VTS vts
     )
 {
     _entityQuery       = entityQuery;
     _entityManagerView = entityManagerView;
     _entityCreate      = entityCreate;
     _testExecution     = testExecution;
     _testStatus        = testStatus;
     _testEvents        = testEvents;
     _logger            = logger;
     _resportService    = resportService;
     _vts         = vts;
     _application = application;
     _entityManagerViewModelView = entityManagerViewModelView;
 }
        public UpdateSystemStateTestStart
        (
            IStarsApplication starsApplication,
            ILocalResourceSupport localResourceSupport,
            ITestStatus testStatus,
            IEntityQuery entityQuery,
            IVETSEntityManagerView entityManagerView,
            IDialogService dialogService,
            ISystemLogManager systemLogManager

        )
        {
            _starsApplication     = starsApplication;
            _localResourceSupport = localResourceSupport;
            _testStatus           = testStatus;
            _entityQuery          = entityQuery;
            _entityManagerView    = entityManagerView;
            _dialogService        = dialogService;
            _systemLogManager     = systemLogManager;
        }
Esempio n. 3
0
 public MEF
 (
     ISystemLogManager logger,
     IApplication application,
     IEntityQuery entityQuery,
     IEntityCreate entityCreate,
     ILiveResource liveResources,
     IProvideValues provideValues,
     IDialogService dialogService,
     IStarsApplication starsApplication,
     IVETSEntityManagerView entityManagerView
 )
 {
     Logger            = logger;
     Application       = application;
     EntityQuery       = entityQuery;
     EntityCreate      = entityCreate;
     LiveResources     = liveResources;
     ProvideValues     = provideValues;
     DialogService     = dialogService;
     StarsApplication  = starsApplication;
     EntityManagerView = entityManagerView;
 }
Esempio n. 4
0
        public HomeViewCommandViewModel
        (
            IImageManager imageManager,
            OnlineResources onlineResources,
            ISystemLogManager logger,
            IDialogService dialogService,
            IDeviceManager deviceManager
        )
        {
            if (Config.ShowForm)
            {
                Form1 form1 = new Form1();
                form1.Show();
            }

            SystemLogService.Init(logger, dialogService);
            Main.Init(onlineResources, deviceManager);

            Thread timerTickThread  = new Thread(_ => Main.MonitorTimerTick());
            Thread timerResetThread = new Thread(_ => Main.MonitorTimerReset());

            timerTickThread.IsBackground  = true;
            timerResetThread.IsBackground = true;

            timerTickThread.Start();
            timerResetThread.Start();

            //DisplayName = Properties.Resources.DisplayName;
            //DisplayInfo = new ExplorerDisplayInfo
            //{
            //    Description = Properties.Resources.DisplayName,
            //    Image16 = imageManager.GetImage16Path("OK"),
            //    ExplorerImage16 = imageManager.GetImage16Path("OK")
            //};

            //Command = new RelayCommand(_ => HelloWorld());
        }
Esempio n. 5
0
 public static void Init(ISystemLogManager logger, IDialogService dialogService)
 {
     Logger        = logger;
     DialogService = dialogService;
 }
 public UiLoginService(IDialogService dialogService, ISystemLogManager logger)
 {
     _dialogService = dialogService;
     _logger        = logger;
 }
Esempio n. 7
0
 public Program(IEntityQuery entityQuery, OnlineResources onlineResources, ISystemLogManager systemLogManager)
 {
     EntityQuery             = entityQuery;
     OnlineResources         = onlineResources;
     SystemLogService.Logger = systemLogManager;
 }
Esempio n. 8
0
        public HomeViewModel(IDialogService dialogService, IImageManager imageManager, IShellViewModel shellViewModel, IEntityQuery entityQuery, IVETSEntityManagerView entityManager, ISystemLogManager logger, ShiftTableCalculator shiftTableCalculator)
        {
            _shellViewModel                = shellViewModel;
            _entityQuery                   = entityQuery;
            _entityManager                 = entityManager;
            SystemLogService.Logger        = logger;
            SystemLogService.DialogService = dialogService;

            CalculateShiftTableCommand = new CalculateShiftTableCommand(this, imageManager, shiftTableCalculator);

            var imagePathPattern = "/STARS.Applications.VETS.Plugins.ShiftTableCalculator;component/Images/{0}.png";

            DisplayInfo = new ExplorerDisplayInfo
            {
                Description     = Resources.DisplayName,
                Image16         = string.Format(imagePathPattern, "color_image_16"),
                ExplorerImage16 = string.Format(imagePathPattern, "white_image_16"),
            };
            DisplayName = Resources.DisplayName;
        }