コード例 #1
0
 ///////////////////////////////////////////////////////////
 public void AddForm(ScreensaverForm ssf)
 {
     formList.Add(ssf);
     ssf.IsPrimary = (formList.Count == 1);
 }
コード例 #2
0
        static void ShowScreenSaver()
        {
            masterControlProgram = new MasterControl();

            foreach (Screen sc in Screen.AllScreens) {
                ScreensaverForm ssf = new ScreensaverForm(masterControlProgram, sc.Bounds);
                masterControlProgram.AddForm(ssf);
                ssf.Show();
            }

            masterControlProgram.Startup();
        }