/////////////////////////////////////////////////////////// public void AddForm(ScreensaverForm ssf) { formList.Add(ssf); ssf.IsPrimary = (formList.Count == 1); }
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(); }