public MainLauncherWindow() { InitializeComponent(); fileService = new WinFileService(); dialogService = new WinDialogService(); freeLanDetectionService = new FreeLanDetectionService(fileService, dialogService); windowsServices = new WindowsServices(); networkAdapters = new NetworkAdapters(); freeLanService = new FreeLanService( windowsServices, freeLanDetectionService, dialogService ); if (!EnvHelper.IsAdministrator()) { MessageBox.Show("To use this application you will need administrator privileges!"); System.Environment.Exit(0); } UpdateWindow(); }