From 24ccb6a3350ee9a3ed8abea8e6f3eb6fbf45cf7f Mon Sep 17 00:00:00 2001 From: lempamo Date: Thu, 24 Aug 2017 10:53:32 -0400 Subject: completed guess the number and other things --- .../OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 39 ++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs') diff --git a/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index 26bcfc9..a01d044 100644 --- a/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -69,7 +69,10 @@ namespace Histacom2.OS.Win95.Win95Apps Properties.Resources.WinClassicCalcBig, Properties.Resources.WinClassicNotepadBig, Properties.Resources.WinClassicRegedit, // 15 - Properties.Resources.WinClassicWordpad }); + Properties.Resources.WinClassicWordpad, + Properties.Resources.TimeDistorter1, + Properties.Resources.WinClassicGTN, + Properties.Resources.WinClassicFTP }); program.BringToFront(); @@ -282,7 +285,13 @@ namespace Histacom2.OS.Win95.Win95Apps break; case "ftp client setup": Win95Installer instFtp = new Win95Installer("FTP Client"); - instFtp.InstallCompleted += (sendr, args) => TitleScreen.frm95.FTPClientToolStripMenuItem.Visible = true; + instFtp.InstallCompleted += (sendr, args) => + { + SaveDirectoryInfo(ProfileProgramsDirectory, "12padams", true, "12padams", true); + SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "12padams"), "FTP Client", true, "FTP Client", true); + CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "12padams", "FTP Client"), "ftpclint.exe", "ftp client", 19, 58395); + TitleScreen.frm95.FTPClientToolStripMenuItem.Visible = true; + }; WinClassic appFtp = wm.StartWin95(instFtp, "FTP Client Setup", null, true, true); Program.AddTaskbarItem(appFtp, appFtp.Tag.ToString(), "FTP Client Setup", null); appFtp.BringToFront(); @@ -292,6 +301,9 @@ namespace Histacom2.OS.Win95.Win95Apps Win95Installer instTd = new Win95Installer("Time Distorter 0.1"); instTd.InstallCompleted += (sendr, args) => { + SaveDirectoryInfo(ProfileProgramsDirectory, "12padams", true, "12padams", true); + SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "12padams"), "Time Distorter 0.1", true, "Time Distorter 0.1", true); + CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "12padams", "Time Distorter 0.1"), "tdistort.exe", "time distorter", 17, 23895); TitleScreen.frm95.TimeDistorterToolStripMenuItem.Visible = true; }; WinClassic appTd = wm.StartWin95(instTd, "Time Distorter Setup", null, true, true); @@ -302,6 +314,29 @@ namespace Histacom2.OS.Win95.Win95Apps case "iebrokeninstaller": wm.StartInfobox95("Internet Explorer Installer", "Installation Failed: The INF file was not found", InfoboxType.Error, InfoboxButtons.OK); + break; + case "gtnv1 setup": + Win95Installer instGtn = new Win95Installer("Guess The Number V1"); + instGtn.InstallCompleted += (sendr, args) => + { + SaveDirectoryInfo(ProfileProgramsDirectory, "12padams", true, "12padams", true); + SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "12padams"), "Guess The Number V1", true, "Guess The Number V1", true); + CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "12padams", "Guess The Number V1"), "guessnum.exe", "guess number", 18, 17483); + TitleScreen.frm95.GuessTheNumberToolStripMenuItem.Visible = true; + }; + WinClassic appGtn = wm.StartWin95(instGtn, "Guess The Number Setup", null, true, true); + Program.AddTaskbarItem(appGtn, appGtn.Tag.ToString(), "Guess The Number Setup", null); + appGtn.BringToFront(); + + break; + case "guess number": + WinClassic appGTN = wm.StartWin95(new GuessTheNumber(), "Guess The Number", Properties.Resources.WinClassicGTNIcon, false, true, false, false); + Program.AddTaskbarItem(appGTN, appGTN.Tag.ToString(), "Guess The Number", Properties.Resources.WinClassicGTNIcon); + + Program.nonimportantapps.Add(appGTN); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); + break; default: wm.StartInfobox95(path.Replace(ProfileMyComputerDirectory, "C:"), $"{path.Replace(ProfileMyComputerDirectory, "C:")} is not a valid Win32 application.", InfoboxType.Error, InfoboxButtons.OK); -- cgit v1.2.3