Example #1
0
        //  When New Game is clicked in TitleScreen.cs
        private void Desktop_Load(object sender, EventArgs e)
        {
            if (!CurrentSave.FTime95)
            {
                UpgradeFileSystem("98");
            }

            if (currentTheme.defaultWallpaper != null)
            {
                desktopicons.BackgroundImage = new Bitmap(currentTheme.defaultWallpaper, Width, Height);
            }
            //Start Menu Color - Commented until it works reliably
            //startmenuitems.Renderer = new MyRenderer();
            //ProgramsToolStripMenuItem.DropDown.Renderer = new MyRenderer();

            // Make Font Mandatory
            fontLoad();

            // Play Windows 95 Start Sound
            Stream audio = currentTheme.startSound;

            startsound = new SoundPlayer(audio);
            startsound.Play();

            // Hide the Startmenu
            startmenu.Hide();

            // Check for and set VM Mode
            if (this.FormBorderStyle != FormBorderStyle.None)
            {
                this.Text = "Histacom2 - VM Mode";
            }

            // Start the ClockTimer
            clockTimer.Start();

            // Set the StartMenu seperator
            startmenuitems.Items.Insert(6, new ToolStripSeparator());

            //nonimportantapps.Capacity = 100;
            this.SendToBack();

            // Update the taskbar
            UpdateTaskbar();

            // Bring to this the front
            this.BringToFront();

            // Update the desktop Icons!

            DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0),
                                                                       new System.Windows.Forms.ListViewItem("Network Neighborhood", 5),
                                                                       new System.Windows.Forms.ListViewItem("Inbox", 3),
                                                                       new System.Windows.Forms.ListViewItem("Recycle Bin", 7),
                                                                       new System.Windows.Forms.ListViewItem("Internet Explorer", 2),
                                                                       new System.Windows.Forms.ListViewItem("Online Services", 1),
                                                                       new System.Windows.Forms.ListViewItem("Set Up The Microsoft Network", 4),
                                                                       new System.Windows.Forms.ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop"));
        }
Example #2
0
 private void desktopupdate_Tick(object sender, EventArgs e)
 {
     DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0),
                                                                new System.Windows.Forms.ListViewItem("Network Neighborhood", 5),
                                                                new System.Windows.Forms.ListViewItem("Inbox", 3),
                                                                new System.Windows.Forms.ListViewItem("Recycle Bin", 7),
                                                                new System.Windows.Forms.ListViewItem("Internet Explorer", 2),
                                                                new System.Windows.Forms.ListViewItem("Online Services", 1),
                                                                new System.Windows.Forms.ListViewItem("Set Up The Microsoft Network", 4),
                                                                new System.Windows.Forms.ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop"));
 }
Example #3
0
        //  When New Game is clicked in TitleScreen.cs
        private void Desktop_Load(object sender, EventArgs e)
        {
            if (currentTheme.defaultWallpaper != null)
            {
                desktopicons.BackgroundImage = new Bitmap(currentTheme.defaultWallpaper, Width, Height);
            }
            //Start Menu Color - Commented until it works reliably
            //startmenuitems.Renderer = new MyRenderer();
            //ProgramsToolStripMenuItem.DropDown.Renderer = new MyRenderer();

            // Make Font Mandatory
            fontLoad();

            // Play Windows 95 Start Sound
            Stream audio = currentTheme.startSound;

            startsound = new SoundPlayer(audio);
            startsound.Play();

            // Hide the Startmenu
            startmenu.Hide();

            // Check for and set VM Mode
            if (this.FormBorderStyle != FormBorderStyle.None)
            {
                this.Text = "Histacom2 - VM Mode";
            }

            // Start the ClockTimer
            clockTimer.Start();

            // Set the StartMenu seperator
            startmenuitems.Items.Insert(6, new ToolStripSeparator());

            //nonimportantapps.Capacity = 100;
            this.SendToBack();

            // Update the taskbar
            UpdateTaskbar();

            // Bring to this the front
            this.BringToFront();

            //Check if it is the first time
            if (CurrentSave.FTime95 == false)
            {
                CurrentSave.FTime95 = true;
                SaveGame();
                welcome = wm.StartWin95(new WinClassicWelcome(), "Welcome", null, false, false, resize: false);
                AddTaskBarItem(welcome, welcome.Tag.ToString(), "Welcome", null);

                nonimportantapps.Add(welcome);
                nonimportantapps[nonimportantapps.Count - 1].BringToFront();
                nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);

                welcome.BringToFront();
                welcome.Activate();
            }

            // Update the Desktop icons

            DesktopController.RefreshDesktopIcons(new ListViewItem[] { new ListViewItem("My Computer", 0),
                                                                       new ListViewItem("Network Neighborhood", 5),
                                                                       new ListViewItem("Inbox", 3),
                                                                       new ListViewItem("Recycle Bin", 7),
                                                                       new ListViewItem("Internet Explorer", 2),
                                                                       new ListViewItem("Online Services", 1),
                                                                       new ListViewItem("Set Up The Microsoft Network", 4),
                                                                       new ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop"));
            desktopicons.AutoArrange = false;
        }
Example #4
0
        //  When New Game is clicked in TitleScreen.cs
        private void Desktop_Load(object sender, EventArgs e)
        {
            if (currentTheme.defaultWallpaper != null)
            {
                desktopicons.BackgroundImage = new Bitmap(currentTheme.defaultWallpaper, Width, Height);
            }

            // Make Font Mandatory
            fontLoad();

            // Play Windows 95 Start Sound
            Stream audio = currentTheme.startSound;

            startsound = new SoundPlayer(audio);
            startsound.Play();

            // Hide the Startmenu
            startmenu.Hide();

            // Check for and set VM Mode
            if (this.FormBorderStyle != FormBorderStyle.None)
            {
                this.Text = "Histacom2 - VM Mode";
            }

            // Start the ClockTimer
            clockTimer.Start();

            // Set the StartMenu seperator
            startmenuitems.Items.Insert(6, new ToolStripSeparator());

            //nonimportantapps.Capacity = 100;
            this.SendToBack();

            // Update the taskbar
            UpdateTaskbar();

            // Bring to this the front
            this.BringToFront();

            // Update the Desktop icons

            DesktopController.RefreshDesktopIcons(new ListViewItem[] { new ListViewItem("My Computer", 0),
                                                                       new ListViewItem("Network Neighborhood", 5),
                                                                       new ListViewItem("Inbox", 3),
                                                                       new ListViewItem("Recycle Bin", 7),
                                                                       new ListViewItem("Internet Explorer", 2),
                                                                       new ListViewItem("Online Services", 1),
                                                                       new ListViewItem("Set Up The Microsoft Network", 4),
                                                                       new ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop"));
            desktopicons.AutoArrange = false;

            // Enable installed programs

            if (CurrentSave.installed95[0])
            {
                WebChatToolStripMenuItem.Visible = true;
            }
            if (CurrentSave.installed95[1])
            {
                FTPClientToolStripMenuItem.Visible = true;
            }
            if (CurrentSave.installed95[2])
            {
                StartRunnerToolStripMenuItem.Visible = true;
            }
            if (CurrentSave.installed95[3])
            {
                ErrorBlasterToolStripMenuItem.Visible = true;
            }
            if (CurrentSave.installed95[5])
            {
                TimeDistorterToolStripMenuItem.Visible = true;
            }
            if (CurrentSave.installed95[6])
            {
                GuessTheNumberToolStripMenuItem.Visible = true;
            }
        }