Beispiel #1
0
        private void desktopicons_Click(object sender, EventArgs e)
        {
            Point        objDrawingPoint = desktopicons.PointToClient(Cursor.Position);
            ListViewItem objListViewItem;

            if (objDrawingPoint != null)
            {
                objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y);
                if (objListViewItem != null)
                {
                    if (objListViewItem.Text == "Internet Explorer")
                    {
                        WinClassicIE4 ie = new WinClassicIE4();
                        Engine.Template.WinClassic app = wm.startWin95(ie, "Internet Explorer 4", null, true, true);
                        app.BringToFront();
                        startmenu.Hide();
                    }
                    else if (objListViewItem.Text == "Web Chat Setup")
                    {
                        WinClassicInstaller inst = new WinClassicInstaller();
                        inst.installname.Text = "Web Chat 1998";
                        Engine.Template.WinClassic app = wm.startWin95(inst, "Web Chat Setup", null, true, true);
                        app.BringToFront();
                        startmenu.Hide();
                    }
                }
            }
        }
Beispiel #2
0
        private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            WebChat1998 wc = new WebChat1998();

            Engine.Template.WinClassic app = wm.startWin95(wc, "Web Chat 1998", null, true, true);
            app.BringToFront();
            startmenu.Hide();
        }
Beispiel #3
0
        private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            WinClassicIE4 ie = new WinClassicIE4();

            Engine.Template.WinClassic app = wm.startWin95(ie, "Internet Explorer 4", null, true, true);
            app.BringToFront();
            startmenu.Hide();
        }
Beispiel #4
0
        void OpenApplication(string appname)
        {
            switch (appname.ToLower())
            {
            case "explorer":
                Engine.Template.WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
                Program.AddTaskbarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
                break;

            case "calc":
                Engine.Template.WinClassic appCalc = wm.StartWin95(new WinClassicCalculator(), "Calculator", Properties.Resources.WinClassicCalc, true, true);
                Program.AddTaskbarItem(appCalc, appCalc.Tag.ToString(), "Calculator", Properties.Resources.WinClassicCalc);

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

                break;

            case "wordpad":
                Engine.Template.WinClassic appWP = wm.StartWin95(new WinClassicWordPad(), "Wordpad", Properties.Resources.WinClassicWordpad, true, true);
                Program.AddTaskbarItem(appWP, appWP.Tag.ToString(), "Wordpad", Properties.Resources.WinClassicWordpad);

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

                break;

            case "iebrokeninstaller":
                wm.StartInfobox95("Internet Explorer Installer", "Installation Failed: The INF file was not found", InfoboxType.Error, InfoboxButtons.OK);

                break;

            case "addressbook":
                WinClassic appAdBk = wm.StartWin95(new WinClassicAddressBook(), "Address Book", Properties.Resources.WinClassicAddressBook, true, true);
                Program.AddTaskbarItem(appAdBk, appAdBk.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook);

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

                break;
            }
        }