Ejemplo n.º 1
0
 public StatsController(ITrackerService trackerService, IEventService eventService,
                        ICustomizationService customizationService)
 {
     _trackerService       = trackerService;
     _eventService         = eventService;
     _customizationService = customizationService;
 }
Ejemplo n.º 2
0
 public SettingsViewModel(ICustomizationService customizationService)
 {
     _customizationService = customizationService;
     _selectedColorRGB     = new ColorRGB()
     {
         R = 1,
         G = 1,
         B = 1
     };
 }
Ejemplo n.º 3
0
 public ImageConvertorViewModel(IDialogService dialogService,
                                IWorkerImageService workerImageService,
                                ICustomizationService customizationService,
                                bool isDarkTheme = false)
 {
     _dialogService        = dialogService;
     _workerImageService   = workerImageService;
     IsDarkTheme           = isDarkTheme;
     _customizationService = customizationService;
 }
        public MainWindow()
        {
            bool   isDarkTheme  = false;
            string recivedTheme = Get_Current_Windows_Theme();

            if (recivedTheme == "Dark")
            {
                isDarkTheme = true;
            }
            _customizationService = new CustomizationService(new WindowService());

            DataContext = new ImageConvertorViewModel(new DialogService(),
                                                      new WorkerImageService(),
                                                      _customizationService,
                                                      isDarkTheme);

            AppDomain currentDomain;

            currentDomain = AppDomain.CurrentDomain;
            currentDomain.UnhandledException += CurrentDomain_UnhandledException;
            Closed += ClearWindows_Temp;
            Set_Start_Theme(recivedTheme);
            InitializeComponent();
        }
 public EventController(IEventService eventService, ICustomizationService customizationService)
 {
     _eventService         = eventService;
     _customizationService = customizationService;
 }