private MasterControl mcp; //master control program #endregion Fields #region Constructors public ScreensaverForm(MasterControl masterControlProgram, Rectangle bounds) { InitializeComponent(); this.mcp = masterControlProgram; this.Bounds = bounds; this.IconList = new List<ComputerIcon>(); }
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(); }