コード例 #1
0
        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>();
        }
コード例 #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();
        }