public ExtractorService() { InitializeComponent(); var configPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "monitors.cfg"); _extractor = new AutoExtractor(configPath); }
static void Main() { var configPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "monitors.cfg"); var extractor = new AutoExtractor(configPath); extractor.Start(); System.Console.WriteLine("Press any key to exit"); System.Console.ReadKey(); }