Exemple #1
0
        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);
        }
Exemple #2
0
        //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);
        }