public void BSODRewind(object sender, EventArgs e) { if (progress == "95") { frm95.Close(); frm95 = null; // If VM Mode is not enabled if (vm_mode.Checked != true) { // Generate fullscreen desktop frm95 = new Windows95(); frm95.TopMost = true; frm95.FormBorderStyle = FormBorderStyle.None; frm95.WindowState = FormWindowState.Maximized; frm95.Show(); Hide(); } // If VM Mode is enabled else { // Generate desktop with size entered by user frm95 = new Windows95(); frm95.FormBorderStyle = FormBorderStyle.None; frm95.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text)); frm95.FormBorderStyle = FormBorderStyle.Fixed3D; frm95.Show(); Hide(); } } }
// When NewGame is Clicked private void NewGame_Click(object sender, EventArgs e) { if (Convert.ToInt32(VM_Width.Text) == 1337 && Convert.ToInt32(VM_Height.Text) == 1337) { leet(); } else // If VM Mode is not enabled if (vm_mode.Checked != true) { // Generate fullscreen desktop frm95 = new Windows95(); frm95.TopMost = true; frm95.FormBorderStyle = FormBorderStyle.None; frm95.WindowState = FormWindowState.Maximized; frm95.Show(); Hide(); } // If VM Mode is enabled else { // Generate desktop with size entered by user frm95 = new Windows95(); frm95.FormBorderStyle = FormBorderStyle.None; frm95.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text)); frm95.FormBorderStyle = FormBorderStyle.Fixed3D; frm95.Show(); Hide(); } }
public void BSODRewind(object sender, EventArgs e) { if (progress == "95") { frm95.Close(); frm95 = null; try { // Time to close all the game applications foreach (Form frm in Application.OpenForms) { if (frm.Tag.ToString() != "ignoreFormOnTaskbar") { frm.Close(); } } } catch { } // Generate fullscreen desktop frm95 = new Windows95(); frm95.TopMost = true; frm95.FormBorderStyle = FormBorderStyle.None; frm95.WindowState = FormWindowState.Maximized; frm95.Show(); Hide(); } }
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; } } }
public void BSODRewind(object sender, EventArgs e) { if (progress == "95") { frm95.Close(); frm95 = null; try { // Time to close all the game applications foreach (Form frm in Application.OpenForms) { if (frm.Tag.ToString() != "ignoreFormOnTaskbar") { frm.Close(); } } } catch { } // If VM Mode is not enabled if (vm_mode.Checked != true) { // Generate fullscreen desktop frm95 = new Windows95(); frm95.TopMost = true; frm95.FormBorderStyle = FormBorderStyle.None; frm95.WindowState = FormWindowState.Maximized; frm95.Show(); Hide(); } // If VM Mode is enabled else { // Generate desktop with size entered by user frm95 = new Windows95(); frm95.FormBorderStyle = FormBorderStyle.None; frm95.Size = new Size(Convert.ToInt32(VM_Width.Text), Convert.ToInt32(VM_Height.Text)); frm95.FormBorderStyle = FormBorderStyle.Fixed3D; frm95.Show(); Hide(); } } }
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; } }