public static void TestRunFromConsole() { bool isValidProperties = ReadPropertiesFile(); if (isValidProperties) { WinService win = new WinService(); win.InitializeComponent(); win.OnStart(null); } }
static void TestMain(string[] args) { WinService.TestRunFromConsole(); }