public StatsController(ITrackerService trackerService, IEventService eventService, ICustomizationService customizationService) { _trackerService = trackerService; _eventService = eventService; _customizationService = customizationService; }
public SettingsViewModel(ICustomizationService customizationService) { _customizationService = customizationService; _selectedColorRGB = new ColorRGB() { R = 1, G = 1, B = 1 }; }
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; }