static void ShowPreview(string secondArgument) { if (secondArgument == null) { MessageBox.Show("Sorry, but the expected window handle was not provided.", "ScreenSaver", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } IntPtr previewWndHandle = new IntPtr(long.Parse(secondArgument)); ScreensaverApplicationContext context = new ScreensaverApplicationContext(_settings, false, previewWndHandle); Application.Run(context); }
//static void ShowOptions() //{ // optionsForm = new SettingsDialog(new WordClockScr.Elements.SettingsMachine(), true); // Application.Run(optionsForm); //} static void ShowScreenSaver() { ScreensaverApplicationContext context = new ScreensaverApplicationContext(_settings, true); Application.Run(context); }