示例#1
0
        public void StartGame()
        {
            //TODO: You may want to handle story stuff to decide what OS to boot here.
            if (Convert.ToInt32(VM_Width.Text) == 1337 && Convert.ToInt32(VM_Height.Text) == 1337)
            {
                leet();
            }
            else
            {
                // Time to decide which OS to start up!

                switch (CurrentSave.CurrentOS)
                {
                case "95":
                    frm95                 = new Windows95();
                    frm95.TopMost         = true;
                    frm95.FormBorderStyle = FormBorderStyle.None;
                    frm95.WindowState     = FormWindowState.Maximized;
                    //if (vm_mode.Checked == true)
                    //{
                    //    frm95.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text));
                    //    frm95.FormBorderStyle = FormBorderStyle.Fixed3D;
                    //}
                    frm95.Show();
                    Hide();

                    break;

                case "98":
                    frm98                 = new Windows98();
                    frm98.TopMost         = true;
                    frm98.FormBorderStyle = FormBorderStyle.None;
                    frm98.WindowState     = FormWindowState.Maximized;
                    //if (vm_mode.Checked == true)
                    //{
                    //    frm98.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text));
                    //    frm98.FormBorderStyle = FormBorderStyle.Fixed3D;
                    //}
                    frm98.Show();
                    Hide();

                    break;

                default:
                    MessageBox.Show("WARNING! It looks like this save is corrupt!");
                    MessageBox.Show("We will now open the Save troubleshooter");

                    SaveFileTroubleShooter troubleshooter = new SaveFileTroubleShooter();

                    troubleshooter.ShowDialog();
                    break;
                }
            }
        }
示例#2
0
        public void StartGame()
        {
            // Time to decide which OS to start up!

            switch (CurrentSave.CurrentOS)
            {
            case "95":
                frm95                 = new Windows95();
                frm95.TopMost         = true;
                frm95.FormBorderStyle = FormBorderStyle.None;
                frm95.WindowState     = FormWindowState.Maximized;
                //if (vm_mode.Checked)
                //{
                //    frm95.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text));
                //    frm95.FormBorderStyle = FormBorderStyle.Fixed3D;
                //}
                frm95.Show();
                Hide();

                break;

            case "98":
                frm98                 = new Windows98();
                frm98.TopMost         = true;
                frm98.FormBorderStyle = FormBorderStyle.None;
                frm98.WindowState     = FormWindowState.Maximized;
                //if (vm_mode.Checked)
                //{
                //    frm98.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text));
                //    frm98.FormBorderStyle = FormBorderStyle.Fixed3D;
                //}
                frm98.Show();
                Hide();

                break;

            case "xpbad":
                frmBadXP                 = new WindowsXPBad();
                frmBadXP.TopMost         = true;
                frmBadXP.FormBorderStyle = FormBorderStyle.None;
                frmBadXP.WindowState     = FormWindowState.Maximized;
                //if (vm_mode.Checked)
                //{
                //    frm98.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text));
                //    frm98.FormBorderStyle = FormBorderStyle.Fixed3D;
                //}
                frmBadXP.Show();
                Hide();

                break;

            default:
                MessageBox.Show("WARNING! It looks like this save is corrupt!");
                MessageBox.Show("We will now open the Save troubleshooter");

                SaveFileTroubleShooter troubleshooter = new SaveFileTroubleShooter();

                troubleshooter.ShowDialog();
                break;
            }
        }