コード例 #1
0
        static void Run()
        {
            var configPath = Path.Combine(AppUtils.AppDir(), "config.xml");

            if (!File.Exists(configPath))
            {
                throw new FileNotFoundException($"Не найден файл с настройками программы: '{configPath}'");
            }

            var killer = new Killer(configPath);

            killer.Loop();
        }