From 3306d36ecbc024775972e5cf7971b2a7a70671d0 Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 23 Aug 2017 13:38:40 -0400 Subject: Renaming the game! --- .../OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 921 +++++++++++++++++++++ 1 file changed, 921 insertions(+) create mode 100644 Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs (limited to 'Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs') diff --git a/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs new file mode 100644 index 0000000..26bcfc9 --- /dev/null +++ b/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -0,0 +1,921 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using static Histacom2.Engine.SaveSystem; +using System.IO; +using Histacom2.Engine; +using Newtonsoft.Json; +using Histacom2.Engine.Template; +using System.Diagnostics; + +namespace Histacom2.OS.Win95.Win95Apps +{ + public partial class Win95WindowsExplorer : UserControl + { + public bool IsFileOpenDialog = false; + public bool IsFileSaveDialog = false; + public string onlyViewExtension = ""; + + string ToReplaceWith = ProfileDirectory; + public string CurrentDirectory = ProfileMyComputerDirectory; + string OldLabelText; + string CurrentCopyFile; + + int fileType = 6; + //string attemptedDirectory = ""; + WindowManager wm = new WindowManager(); + + public Win95WindowsExplorer() + { + InitializeComponent(); + } + + void WinClassicWindowsExplorer_Load(object sender, EventArgs e) + { + diskView.ImageList = new ImageList(); + + diskView.ImageList.Images.Add(Properties.Resources.Win95DesktopIcon); + diskView.ImageList.Images.Add(Properties.Resources.Win95HardDiskIcon); + diskView.ImageList.Images.Add(Properties.Resources.WinClassicFolderSmall); + diskView.ImageList.Images.Add(Properties.Resources.WinClassicOpenFolderSmall); + diskView.ImageList.Images.Add(Properties.Resources.Win95ControlPanelIcon); + diskView.ImageList.Images.Add(Properties.Resources.Win95PrintersFolder); + diskView.ImageList.Images.Add(Properties.Resources.Win95ComputerIcon); + diskView.ImageList.Images.Add(Properties.Resources.Win95NetworkIcon); + diskView.ImageList.Images.Add(Properties.Resources.Win95RecycleIcon); + + mainView.LargeImageList = new ImageList(); + mainView.LargeImageList.ImageSize = new Size(32, 32); + + mainView.LargeImageList.Images.AddRange(new Bitmap[] { Properties.Resources.Win95Computer, // 0 + Properties.Resources.WinClassicFolder, + Properties.Resources.WinClassicIE4, + Properties.Resources.WinClassicInbox, + Properties.Resources.WinClassicMSN, + Properties.Resources.WinClassicNetworking, // 5 + Properties.Resources.WinClassicOutlook, + Properties.Resources.WinClassicRecycle, + Properties.Resources.Win95File, + Properties.Resources.WinClassicFolder, + Properties.Resources.WinClassicApp, // 10 + Properties.Resources.WinClassicSetup, + Properties.Resources.WinClassicNotepad, + Properties.Resources.WinClassicCalcBig, + Properties.Resources.WinClassicNotepadBig, + Properties.Resources.WinClassicRegedit, // 15 + Properties.Resources.WinClassicWordpad }); + + program.BringToFront(); + + + //diskView.Items.Add("My Computer", 0); + Application.DoEvents(); + + RefreshAll(); + RefreshTreeNode(); + + if (FileDialogBoxManager.IsInOpenDialog) + { + IsFileOpenDialog = true; + } + else if (FileDialogBoxManager.IsInSaveDialog) + { + IsFileSaveDialog = true; + } + + if (IsFileOpenDialog == true) + { + pnlSave.Show(); + Button1.Text = "Open"; + } + else + { + if (IsFileSaveDialog == true) + { + pnlSave.Show(); + Button1.Text = "Save"; + } + } + + onlyViewExtension = FileDialogBoxManager.OnlyViewExtension; + } + + string ReadDataFile(string reqDirectory, bool returnYesIfProtected = false) { + string Val = ""; + string directoryFileInfo; + directoryFileInfo = File.ReadAllText(Path.Combine(reqDirectory, "_data.info")); + FileSystemFolderInfo toRead = new FileSystemFolderInfo(); + toRead = JsonConvert.DeserializeObject(directoryFileInfo); + + if (returnYesIfProtected == true) + { + if (toRead.IsProtected == true) return "yes"; + } + else return toRead.Label; + return Val; + } + + private void RefreshAll() + { + //try { + this.mainView.Items.Clear(); + + foreach (string str in Directory.GetDirectories(CurrentDirectory)) + { + string label = ReadDataFile(str, false); + ListViewItem itm = this.mainView.Items.Add(label ?? Path.GetFileName(str)); + itm.ImageIndex = 1; + itm.Tag = str; + } + foreach (string str in Directory.GetFiles(CurrentDirectory)) + { + ListViewItem itm; + + if (IsFileOpenDialog == true || IsFileSaveDialog == true) + { + if (!(Path.GetFileName(str) == "_data.info")) + { + if (new FileInfo(str).Extension == onlyViewExtension) + { + itm = this.mainView.Items.Add(Path.GetFileName(str)); + itm.Tag = str; + } + else continue; + } + else continue; + } + else { + if (!(Path.GetFileName(str) == "_data.info")) + { + itm = this.mainView.Items.Add(Path.GetFileName(str)); + itm.Tag = str; + } + else continue; + } + FileSystemFolderInfo fsfi = JsonConvert.DeserializeObject(File.ReadAllText(Path.Combine(CurrentDirectory, "_data.info"))); + foreach (var item in fsfi.Files) + { + Debug.Print(item.Name + " " + Path.GetFileName(str)); + if (item.Name == Path.GetFileName(str)) { itm.ImageIndex = item.FileIcon; break; } + } + } + /* + } catch (Exception ex) { + //wm.StartInfobox95("Exploring - C:", "Error with the file explorer \n" + ex.Message, Properties.Resources.Win95Info); add illegal operation dialog here later + ((Form)this.TopLevelControl).Close(); + }*/ + } + + private void RefreshTreeNode() + { + // Refresh the TreeView + + diskView.Nodes.Clear(); + int loc = 0; + TreeNode[] folders = new TreeNode[new DirectoryInfo(ProfileMyComputerDirectory).GetDirectories().Length]; + foreach (DirectoryInfo folder in new DirectoryInfo(ProfileMyComputerDirectory).GetDirectories()) + { + if (folder.GetDirectories().Length > 0) + { + string label = ReadDataFile(folder.FullName, false); + TreeNode[] tn = createSubDirNodes(folder); + folders[loc] = new TreeNode(label ?? folder.Name, 2, 3, tn); + folders[loc].Tag = folder.FullName; + } + else + { + string label = ReadDataFile(folder.FullName, false); + folders[loc] = new TreeNode(label ?? folder.Name, 2, 3); + folders[loc].Tag = folder.FullName; + } + loc++; + } + TreeNode[] mypcarray = new TreeNode[3]; + mypcarray[0] = new TreeNode("(C:)", 1, 1, folders); + mypcarray[1] = new TreeNode("Control Panel", 4, 4); + mypcarray[2] = new TreeNode("Printers", 5, 5); + TreeNode[] desktoparray = new TreeNode[3]; + desktoparray[0] = new TreeNode("My Computer", 6, 6, mypcarray); + desktoparray[1] = new TreeNode("Network Neighborhood", 7, 7); + desktoparray[2] = new TreeNode("Recycle Bin", 8, 8); + diskView.Nodes.Add(new TreeNode("Desktop", 0, 0, desktoparray)); + } + + public void OpenFile(string fileDir) + { + try + { + ReturnType(new FileInfo(fileDir).Extension); + switch (fileType) + { + case 1: + WinClassicNotepad np = new WinClassicNotepad(); + np.mainText.Text = FileDialogBoxManager.ReadTextFile(fileDir); + WinClassic app = wm.StartWin95(np, "Notepad", Properties.Resources.Win95IconNotepad, true, true); + + Program.AddTaskbarItem(app, app.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad); + break; + case 12: + OpenApplication(FileDialogBoxManager.ReadTextFile(fileDir), fileDir); + break; + } + } catch { + } + } + + void OpenApplication(string appname, string path) + { + switch (appname.ToLower()) + { + case "explorer": + 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": + 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 "notepad": + WinClassic appNP = wm.StartWin95(new WinClassicNotepad(), "Notepad", Properties.Resources.Win95IconNotepad_2, true, true); + Program.AddTaskbarItem(appNP, appNP.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad_2); + + Program.nonimportantapps.Add(appNP); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); + + break; + case "wordpad": + WinClassic appWP = wm.StartWin95(new WinClassicWordPad(), "Wordpad", Properties.Resources.Win95WordpadIcon2, true, true); + Program.AddTaskbarItem(appWP, appWP.Tag.ToString(), "Wordpad", Properties.Resources.Win95WordpadIcon2); + + 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 "ie": + if (TitleScreen.frm95.ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; } + TitleScreen.frm95.ie = wm.StartWin95(new WinClassicIE3(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true); + Program.AddTaskbarItem(TitleScreen.frm95.ie, TitleScreen.frm95.ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4); + TitleScreen.frm95.ie.BringToFront(); + TitleScreen.frm95.ie.FormClosing += new FormClosingEventHandler(TitleScreen.frm95.InternetExplorer4_Closing); + + break; + case "web chat setup": + Win95Installer inst = new Win95Installer("Web Chat 1998"); + inst.InstallCompleted += (sendr, args) => TitleScreen.frm95.WebChatToolStripMenuItem.Visible = true; + WinClassic appInstaller = wm.StartWin95(inst, "Web Chat Setup", null, true, true); + Program.AddTaskbarItem(appInstaller, appInstaller.Tag.ToString(), "Web Chat Setup", null); + appInstaller.BringToFront(); + + break; + case "ftp client setup": + Win95Installer instFtp = new Win95Installer("FTP Client"); + instFtp.InstallCompleted += (sendr, args) => 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(); + + break; + case "time distorter setup": + Win95Installer instTd = new Win95Installer("Time Distorter 0.1"); + instTd.InstallCompleted += (sendr, args) => + { + TitleScreen.frm95.TimeDistorterToolStripMenuItem.Visible = true; + }; + WinClassic appTd = wm.StartWin95(instTd, "Time Distorter Setup", null, true, true); + Program.AddTaskbarItem(appTd, appTd.Tag.ToString(), "Time Distorter Setup", null); + appTd.BringToFront(); + + break; + case "iebrokeninstaller": + wm.StartInfobox95("Internet Explorer Installer", "Installation Failed: The INF file was not found", InfoboxType.Error, InfoboxButtons.OK); + + break; + default: + wm.StartInfobox95(path.Replace(ProfileMyComputerDirectory, "C:"), $"{path.Replace(ProfileMyComputerDirectory, "C:")} is not a valid Win32 application.", InfoboxType.Error, InfoboxButtons.OK); + break; + } + } + + string ReturnType(string extension) { + string returnVal = "File"; + fileType = 0; + switch (extension) { + case ".txt": + fileType = 1; + returnVal = "Text Document \n createtext"; + break; + case ".dat": + fileType = 1; + returnVal = "Text Document \n createtext"; + break; + case ".rtf": + fileType = 2; + returnVal = "Rich Text Document \n createtext"; + break; + case ".cfg": + fileType = 1; + returnVal = "Config file \n createtext"; + break; + case ".log": + fileType = 1; + returnVal = "log text file \n createtext"; + break; + case ".ini": + fileType = 1; + returnVal = "initialization \n createtext"; + break; + case ".properties": + fileType = 1; + returnVal = "Config file \n createtext"; + break; + case ".json": + fileType = 1; + returnVal = "Config file \n createtext"; + break; + case ".doc": + fileType = 3; + returnVal = "Word Document \n word"; + break; + case ".docm": + fileType = 3; + returnVal = "Macro-Enabled Word Document \n word"; + break; + case ".xls": + fileType = 4; + returnVal = "Excel Spreadsheets \n excel"; + break; + case ".ppt": + fileType = 5; + returnVal = "Powerpoint Presentation \n powerpoint"; + break; + case ".pub": + fileType = 7; + returnVal = "Publisher Document \n powerpoint"; + break; + case ".xps": + fileType = 8; + returnVal = "XPS Document \n xpsview"; + break; + case ".htm": + fileType = 9; + returnVal = "HTML web page \n html"; + break; + case ".html": + fileType = 9; + returnVal = "HTML web page \n html"; + break; + case ".wps": + fileType = 10; + returnVal = "Works document \n works"; + break; + case ".wmf": + fileType = 11; + returnVal = "Windows Metafile (A picture) \n createart"; + break; + case ".emf": + fileType = 11; + returnVal = "Enhanced Metafile (A picture) \n createart"; + break; + case ".png": + fileType = 11; + returnVal = "Picture file (Portable Network Graphics) \n createart"; + break; + case ".jpg": + fileType = 11; + returnVal = "Picture file \n createart"; + break; + case ".jpeg": + fileType = 11; + returnVal = "Picture file \n createart"; + break; + case ".gif": + fileType = 12; + returnVal = "Picture file \n gifman"; + break; + case ".tif": + fileType = 11; + returnVal = "Picture file \n createart"; + break; + case ".bmp": + fileType = 11; + returnVal = "Picture file \n createart"; + break; + case ".zip": + fileType = 11; + returnVal = "Compressed ZIP file \n winrar"; + break; + case ".exe": + fileType = 12; + returnVal = "Program \n exe"; + break; + case ".avi": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".m4v": + fileType = 15; + returnVal = "Video (MPEG-4) \n video"; + break; + case ".mp4": + fileType = 15; + returnVal = "Video (MPEG-4) \n video"; + break; + case ".wmv": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".m2v": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".m3u": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".mts": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".dv": + fileType = 15; + returnVal = "Video (Digital Video) \n video"; + break; + case ".flv": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".m1v": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".m2ts": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".mkv": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".mov": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".mpeg4": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".mpeg": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".mpg": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".3gp": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".m4p": + fileType = 15; + returnVal = "Video \n video"; + break; + case ".mp2": + fileType = 21; + returnVal = "Audio \n video"; + break; + case ".mp3": + fileType = 21; + returnVal = "Audio \n video"; + break; + case ".wav": + fileType = 21; + returnVal = "Audio \n video"; + break; + case ".nls": + fileType = 16; + returnVal = "Font file \n font"; + break; + case ".dll": + fileType = 17; + returnVal = "System File \n sys"; + break; + case ".bat": + fileType = 18; + returnVal = "MS-DOS Batch File \n winterm"; + break; + case ".url": + fileType = 19; + returnVal = "Shortcut \n short"; + break; + case ".sh": + fileType = 20; + returnVal = "BASH file \n winterm"; + break; + case ".win": + fileType = 17; + returnVal = "System file \n sys"; + break; + } + return returnVal; + } + + //Private Sub windows_explorer_Closed(sender As Object, e As EventArgs) Handles Me.Closed + // IsFileDialog = False + //End Sub + + void mainView_DoubleClick(object sender, EventArgs e) + { + try + { + if (new DirectoryInfo((string)mainView.FocusedItem.Tag).Extension == null || new DirectoryInfo((string)mainView.FocusedItem.Tag).Extension == "") + { // If it isn't a file + GoToDir(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text)); + } + else + { // If it is a file + if (IsFileOpenDialog == true || IsFileSaveDialog == true) + { + if (new FileInfo(Path.Combine(CurrentDirectory, txtSave.Text)).Extension == onlyViewExtension) + { + Program.WindowsExplorerReturnPath = Path.Combine(CurrentDirectory, txtSave.Text); + } + + + FileDialogBoxManager.IsInOpenDialog = false; + FileDialogBoxManager.IsInSaveDialog = false; + + ((Form)this.TopLevelControl).Close(); + } + else + { + OpenFile(mainView.FocusedItem.Tag.ToString()); + } + } + } catch (Exception ex) { + MessageBox.Show(ex.Message); + } + } + + void diskView_AfterSelect(object sender, EventArgs e) + { + try + { + if (diskView.SelectedNode != null) + { + if (diskView.SelectedNode.Text == "My Computer") + { + GoToDir(ProfileFileSystemDirectory); + } + else if (diskView.SelectedNode.Text == "(C:)") + { + GoToDir(ProfileMyComputerDirectory); + } + else + { + if (diskView.SelectedNode.Tag != null) + { + // It is a directory: + + try + { + GoToDir(diskView.SelectedNode.Tag.ToString()); + } + catch { } + } + } + } + } catch { + } + } + + void GoToDir(string dir) + { + mainView.Show(); + mainView.BringToFront(); + CurrentDirectory = dir; + RefreshAll(); + } + + private void FolderToolStripMenuItem_Click(object sender, EventArgs e) + { + if (File.Exists(CurrentDirectory + "\\New Folder")) + { + //wm.StartInfobox95("Windows Explorer", "This directory already exists", Properties.Resources.Win95Info); + //TODO: add making "New Folder (2)" + } + else + { + SaveDirectoryInfo(CurrentDirectory, "New Folder", false, "New Folder", true); + + RefreshAll(); + OldLabelText = "New Folder"; + mainView.LabelEdit = true; + mainView.FindItemWithText("New Folder").BeginEdit(); + } + + RefreshTreeNode(); + } + + private void Button1_Click(object sender, EventArgs e) + { + try + { + bool OpenFile = false; + if (mainView.FocusedItem != null) + { + if (mainView.FocusedItem.Tag.ToString() == "") + { // If it isn't a file + GoToDir(Path.Combine(CurrentDirectory, mainView.FocusedItem.Tag.ToString())); + } + else OpenFile = true; // If it is a file + } + else OpenFile = true; + if (OpenFile == true) + { + if (txtSave.Text == "") wm.StartInfobox95("Windows Explorer", "Please enter a filename", InfoboxType.Info, InfoboxButtons.OK); + else + { + if (new FileInfo(Path.Combine(CurrentDirectory, txtSave.Text)).Extension == onlyViewExtension) Program.WindowsExplorerReturnPath = Path.Combine(CurrentDirectory, txtSave.Text); + + FileDialogBoxManager.IsInOpenDialog = false; + FileDialogBoxManager.IsInSaveDialog = false; + + ((Form)this.TopLevelControl).Close(); + } + } + } catch { + + } + } + + private void DeleteToolStripMenuItem_Click(object sender, EventArgs e) + { + try + { + if (!FileOrDirectoryExists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text))) + { + wm.StartInfobox95("Windows Explorer", "This directory doesn't exist", InfoboxType.Info, InfoboxButtons.OK); + } + else + { + if (Directory.Exists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text))) Directory.Delete(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text), true); + else File.Delete(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text)); + + RefreshAll(); + } + } catch + { + RefreshAll(); + } + + RefreshTreeNode(); + } + + internal static bool FileOrDirectoryExists(string path) + { + return (Directory.Exists(path) || File.Exists(path)); + } + + private void CloseToolStripMenuItem_Click(object sender, EventArgs e) + { + ((Form)this.TopLevelControl).Close(); + } + private void AboutWindows95ToolStripMenuItem_Click(object sender, EventArgs e) + { + WindowManager wm = new WindowManager(); + wm.StartAboutBox95("Windows 95", "Microsoft Windows 95 Rev B", Properties.Resources.WinClassicAbout95); + } + + private void RenameToolStripMenuItem_Click(object sender, EventArgs e) + { + try + { + // The AfterLabelEdit event will kick in after this + OldLabelText = mainView.FocusedItem.Text; + mainView.LabelEdit = true; + mainView.FocusedItem.BeginEdit(); + } catch + { + + } + } + + private void mainView_AfterLabelEdit(object sender, LabelEditEventArgs e) + { + string setText = e.Label; + if (setText == "") wm.StartInfobox95("Rename", "You must type a filename.", InfoboxType.Error, InfoboxButtons.OK); + else + { + if (Directory.Exists(setText)) wm.StartInfobox95("Error Renaming File", $"Cannot rename {new DirectoryInfo(setText).Name}: A file with the name you specified already exists. Specify a different filename.", InfoboxType.Error, InfoboxButtons.OK); + else + { + if (File.Exists(setText)) wm.StartInfobox95("Error Renaming File", $"Cannot rename {new FileInfo(setText).Name}: A file with the name you specified already exists. Specify a different filename.", InfoboxType.Error, InfoboxButtons.OK); + else + { + if (Directory.Exists((string)mainView.FocusedItem.Tag)) + { + // It was a directory + + Directory.Move((string)mainView.FocusedItem.Tag, Path.Combine(CurrentDirectory, setText)); + + File.Delete(Path.Combine(CurrentDirectory, setText, "_data.info")); + SaveDirectoryInfo(CurrentDirectory, setText, false, setText, true); + } + else + { + // It was a file + + File.Copy((string)mainView.FocusedItem.Tag, Path.Combine(CurrentDirectory, setText)); + File.Delete((string)mainView.FocusedItem.Tag); + } + } + } + } + RefreshAll(); + RefreshTreeNode(); + } + + private TreeNode[] createSubDirNodes(DirectoryInfo folder) + { + TreeNode[] toReturn = new TreeNode[folder.GetDirectories().Length]; + int loc = 0; + foreach (DirectoryInfo fold in folder.GetDirectories()) + { + if (fold.GetDirectories().Length > 0) + { + string label = ReadDataFile(fold.FullName, false); + TreeNode[] tn = createSubDirNodes(fold); + toReturn[loc] = new TreeNode(label ?? fold.Name, 2, 3, tn); + toReturn[loc].Tag = fold.FullName; + } + else + { + string label = ReadDataFile(fold.FullName, false); + toReturn[loc] = new TreeNode(label ?? fold.Name, 2, 3); + toReturn[loc].Tag = fold.FullName; + } + loc++; + } + return toReturn; + } + + private void RefreshToolStripMenuItem_Click(object sender, EventArgs e) + { + RefreshAll(); + } + + private void CutCtrlXToolStripMenuItem_Click(object sender, EventArgs e) + { + try + { + if (mainView.FocusedItem != null && mainView.FocusedItem.ImageKey != "") + { + + // It is a directory + string oldLocation; + oldLocation = mainView.FocusedItem.ImageKey; + + CurrentCopyFile = Path.Combine(GameDirectory, "Data", Path.GetFileName(mainView.FocusedItem.ImageKey)); + + if (Directory.Exists(CurrentCopyFile)) Directory.Delete(CurrentCopyFile); + if (File.Exists(CurrentCopyFile)) File.Delete(CurrentCopyFile); + + Directory.Move(mainView.FocusedItem.ImageKey, Path.Combine(GameDirectory, "Data", Path.GetDirectoryName(mainView.FocusedItem.ImageKey))); + + + DirectoryCopy(CurrentCopyFile, oldLocation, true); + } + else if (mainView.FocusedItem != null) + { + // It is a file + + CurrentCopyFile = Path.Combine(GameDirectory, "Data", Path.GetFileName(mainView.FocusedItem.Tag.ToString())); + + if (Directory.Exists(CurrentCopyFile)) Directory.Delete(CurrentCopyFile); + if (File.Exists(CurrentCopyFile)) File.Delete(CurrentCopyFile); + + File.Move(mainView.FocusedItem.Tag.ToString(), Path.Combine(GameDirectory, "Data", Path.GetFileName(mainView.FocusedItem.Tag.ToString()))); + } + RefreshAll(); + } + catch + { + } + } + + private void CopyCtrlCToolStripMenuItem_Click(object sender, EventArgs e) + { + try + { + if (mainView.FocusedItem != null && mainView.FocusedItem.ImageKey != "") + { + // It is a directory + string oldLocation; + oldLocation = mainView.FocusedItem.ImageKey; + CurrentCopyFile = Path.Combine(GameDirectory, "Data", Path.GetFileName(mainView.FocusedItem.ImageKey)); + + if (Directory.Exists(CurrentCopyFile)) Directory.Delete(CurrentCopyFile); + if (File.Exists(CurrentCopyFile)) File.Delete(CurrentCopyFile); + + DirectoryCopy(CurrentCopyFile, oldLocation, true); + } + else if (mainView.FocusedItem != null) + { + // It is a file + + CurrentCopyFile = Path.Combine(GameDirectory, "Data", Path.GetFileName(mainView.FocusedItem.Tag.ToString())); + + if (Directory.Exists(CurrentCopyFile)) Directory.Delete(CurrentCopyFile); + if (File.Exists(CurrentCopyFile)) File.Delete(CurrentCopyFile); + + File.Copy(mainView.FocusedItem.Tag.ToString(), Path.Combine(GameDirectory, "Data", Path.GetFileName(mainView.FocusedItem.Tag.ToString()))); + + } + RefreshAll(); + } + catch + { + } + } + + private void PasteToolStripMenuItem_Click(object sender, EventArgs e) + { + if (Directory.Exists(CurrentCopyFile)) + { + // It is a directory + + DirectoryCopy(CurrentCopyFile, CurrentDirectory, true); + } + else if (File.Exists(CurrentCopyFile)) + { + // It is a file + + File.Copy(CurrentCopyFile, Path.Combine(CurrentDirectory, Path.GetFileName(CurrentCopyFile))); + } + RefreshAll(); + } + + private static void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs) + { + // Get the subdirectories for the specified directory. + DirectoryInfo dir = new DirectoryInfo(sourceDirName); + + if (dir.Exists) + { + DirectoryInfo[] dirs = dir.GetDirectories(); + // If the destination directory doesn't exist, create it. + if (!Directory.Exists(destDirName)) + { + Directory.CreateDirectory(destDirName); + } + + // Get the files in the directory and copy them to the new location. + FileInfo[] files = dir.GetFiles(); + foreach (FileInfo file in files) + { + string temppath = Path.Combine(destDirName, file.Name); + file.CopyTo(temppath, false); + } + + // If copying subdirectories, copy them and their contents to new location. + if (copySubDirs) + { + foreach (DirectoryInfo subdir in dirs) + { + string temppath = Path.Combine(destDirName, subdir.Name); + DirectoryCopy(subdir.FullName, temppath, copySubDirs); + } + } + } + } + + private void refresh_Tick(object sender, EventArgs e) + { + RefreshAll(); + } + + private void SellectAllCtrlAToolStripMenuItem_Click(object sender, EventArgs e) + { + foreach (ListViewItem item in mainView.Items) item.Selected = true; + } + + private void mainView_MouseClick(object sender, MouseEventArgs e) + { + + } + } +} -- cgit v1.2.3 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 --- Histacom2/GlobalPrograms/WinClassicDownloader.cs | 19 +- Histacom2/Histacom2.csproj | 10 + Histacom2/OS/Win95/Win95.Designer.cs | 10 +- Histacom2/OS/Win95/Win95.cs | 13 + Histacom2/OS/Win95/Win95.resx | 4 +- .../OS/Win95/Win95Apps/GuessTheNumber.Designer.cs | 2 + Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs | 36 ++ .../Win95Apps/IE4Sites/12padams1998.Designer.cs | 429 +++++++++++---------- .../OS/Win95/Win95Apps/IE4Sites/12padams1998.cs | 11 + .../OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 39 +- Histacom2/Properties/Resources.resx | 30 ++ Histacom2/Properties/Resources1.Designer.cs | 100 +++++ .../Resources/GuessTheNumber/GTN95_Correct.png | Bin 0 -> 394 bytes Histacom2/Resources/GuessTheNumber/GTN95_Error.png | Bin 0 -> 358 bytes Histacom2/Resources/GuessTheNumber/GTN95_Lower.png | Bin 0 -> 354 bytes Histacom2/Resources/WinClassic/TimeDistorter1.png | Bin 0 -> 407 bytes .../Resources/WinClassic/TimeDistorter1Icon.png | Bin 0 -> 252 bytes Histacom2/Resources/WinClassic/WinClassicFTP.png | Bin 0 -> 452 bytes .../Resources/WinClassic/WinClassicFTPIcon.png | Bin 0 -> 286 bytes Histacom2/Resources/WinClassic/WinClassicGTN.png | Bin 0 -> 403 bytes .../Resources/WinClassic/WinClassicGTNIcon.png | Bin 0 -> 282 bytes 21 files changed, 471 insertions(+), 232 deletions(-) create mode 100644 Histacom2/Resources/GuessTheNumber/GTN95_Correct.png create mode 100644 Histacom2/Resources/GuessTheNumber/GTN95_Error.png create mode 100644 Histacom2/Resources/GuessTheNumber/GTN95_Lower.png create mode 100644 Histacom2/Resources/WinClassic/TimeDistorter1.png create mode 100644 Histacom2/Resources/WinClassic/TimeDistorter1Icon.png create mode 100644 Histacom2/Resources/WinClassic/WinClassicFTP.png create mode 100644 Histacom2/Resources/WinClassic/WinClassicFTPIcon.png create mode 100644 Histacom2/Resources/WinClassic/WinClassicGTN.png create mode 100644 Histacom2/Resources/WinClassic/WinClassicGTNIcon.png (limited to 'Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs') diff --git a/Histacom2/GlobalPrograms/WinClassicDownloader.cs b/Histacom2/GlobalPrograms/WinClassicDownloader.cs index f454bdb..ba432d8 100644 --- a/Histacom2/GlobalPrograms/WinClassicDownloader.cs +++ b/Histacom2/GlobalPrograms/WinClassicDownloader.cs @@ -18,7 +18,7 @@ namespace Histacom2.OS.Win95.Win95Apps return rnd.Next(7, 9).ToString() + "." + rnd.Next(7, 9).ToString() + rnd.Next(7, 9).ToString(); } - int amountToDL = 100; + public int amountToDL = 100; int amountDLed = 0; private void WinClassicDownloader_Load(object sender, EventArgs e) @@ -32,7 +32,7 @@ namespace Histacom2.OS.Win95.Win95Apps amountDLed = amountDLed + 8; if (8 > amountToDL - amountDLed) { - progBar.Value = 100; + progBar.Value = amountToDL; amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; switch (appName.Text) @@ -44,14 +44,13 @@ namespace Histacom2.OS.Win95.Win95Apps CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Web Chat Setup.exe", "web chat setup", 11, 34846); break; case "Downloading: Time Distorter 0.1": - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Time Distorter Setup.exe", "time distorter setup", 11, 11583); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Time Distorter Setup.exe", "time distorter setup", 11, 21583); + break; + case "Downloading: Guess The Number V1": + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Guess The Number V1 Setup.exe", "gtnv1 setup", 11, 16483); break; } - /* if (appName.Text == "Downloading: Guess The Number") - { - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Guess The Number Setup.exe"), "GuessTheNumber"); - } - if (appName.Text == "Downloading: Start Runner") + /* if (appName.Text == "Downloading: Start Runner") { CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Start Runner Setup.exe"), "StartRunner"); } @@ -62,10 +61,6 @@ namespace Histacom2.OS.Win95.Win95Apps if (appName.Text == "Downloading: Skindows 95") { CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Skindows 95 Setup.exe"), "Skindows95Setup"); - } - if (appName.Text == "Downloading: Time Distorter") - { - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Time Distorter Setup.exe"), "time distorter setup"); } */ ((Form)this.TopLevelControl).Close(); dlTimer.Stop(); diff --git a/Histacom2/Histacom2.csproj b/Histacom2/Histacom2.csproj index 3e8c091..6f60226 100644 --- a/Histacom2/Histacom2.csproj +++ b/Histacom2/Histacom2.csproj @@ -512,6 +512,7 @@ + @@ -538,6 +539,9 @@ + + + @@ -640,6 +644,8 @@ + + @@ -677,6 +683,10 @@ + + + + diff --git a/Histacom2/OS/Win95/Win95.Designer.cs b/Histacom2/OS/Win95/Win95.Designer.cs index 05dd8fc..753dfd6 100644 --- a/Histacom2/OS/Win95/Win95.Designer.cs +++ b/Histacom2/OS/Win95/Win95.Designer.cs @@ -223,7 +223,7 @@ namespace Histacom2.OS.Win95 this.startmenuitems.Name = "startmenuitems"; this.startmenuitems.Padding = new System.Windows.Forms.Padding(6, 2, 0, 0); this.startmenuitems.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; - this.startmenuitems.Size = new System.Drawing.Size(145, 292); + this.startmenuitems.Size = new System.Drawing.Size(145, 311); this.startmenuitems.TabIndex = 0; this.startmenuitems.Text = "StartMenu"; // @@ -664,10 +664,12 @@ namespace Histacom2.OS.Win95 this.GuessTheNumberToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.GuessTheNumberToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; this.GuessTheNumberToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.GuessTheNumberToolStripMenuItem.Image = global::Histacom2.Properties.Resources.WinClassicGTNIcon; this.GuessTheNumberToolStripMenuItem.Name = "GuessTheNumberToolStripMenuItem"; this.GuessTheNumberToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.GuessTheNumberToolStripMenuItem.Text = "Guess The Number"; this.GuessTheNumberToolStripMenuItem.Visible = false; + this.GuessTheNumberToolStripMenuItem.Click += new System.EventHandler(this.GuessTheNumberToolStripMenuItem_Click); // // StartRunnerToolStripMenuItem // @@ -704,6 +706,7 @@ namespace Histacom2.OS.Win95 this.WebChatToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.WebChatToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; this.WebChatToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.WebChatToolStripMenuItem.Image = global::Histacom2.Properties.Resources.WinClassicWebchat; this.WebChatToolStripMenuItem.Name = "WebChatToolStripMenuItem"; this.WebChatToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.WebChatToolStripMenuItem.Text = "Web Chat"; @@ -715,9 +718,11 @@ namespace Histacom2.OS.Win95 this.TimeDistorterToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.TimeDistorterToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; this.TimeDistorterToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.TimeDistorterToolStripMenuItem.Image = global::Histacom2.Properties.Resources.TimeDistorter1Icon; this.TimeDistorterToolStripMenuItem.Name = "TimeDistorterToolStripMenuItem"; this.TimeDistorterToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.TimeDistorterToolStripMenuItem.Text = "Time Distorter"; + this.TimeDistorterToolStripMenuItem.Visible = false; this.TimeDistorterToolStripMenuItem.Click += new System.EventHandler(this.TimeDistorterToolStripMenuItem_Click); // // FTPClientToolStripMenuItem @@ -725,10 +730,11 @@ namespace Histacom2.OS.Win95 this.FTPClientToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.FTPClientToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; this.FTPClientToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.FTPClientToolStripMenuItem.Image = global::Histacom2.Properties.Resources.WinClassicFTPIcon; this.FTPClientToolStripMenuItem.Name = "FTPClientToolStripMenuItem"; this.FTPClientToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.FTPClientToolStripMenuItem.Text = "FTP Client"; - this.FTPClientToolStripMenuItem.Visible = true; + this.FTPClientToolStripMenuItem.Visible = false; this.FTPClientToolStripMenuItem.Click += new System.EventHandler(this.FTPClientToolStripMenuItem_Click); // // DocumentsToolStripMenuItem diff --git a/Histacom2/OS/Win95/Win95.cs b/Histacom2/OS/Win95/Win95.cs index 4708a92..8d2e466 100644 --- a/Histacom2/OS/Win95/Win95.cs +++ b/Histacom2/OS/Win95/Win95.cs @@ -593,6 +593,19 @@ namespace Histacom2.OS.Win95 { heldDownItem = null; } + + private void GuessTheNumberToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassic app = wm.StartWin95(new GuessTheNumber(), "Guess The Number", Properties.Resources.WinClassicGTNIcon, false, false, false, false); + AddTaskBarItem(app, app.Tag.ToString(), "Guess The Number", Properties.Resources.WinClassicGTNIcon); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } } public class MyRenderer : ToolStripProfessionalRenderer { diff --git a/Histacom2/OS/Win95/Win95.resx b/Histacom2/OS/Win95/Win95.resx index bbd3a9a..25103b3 100644 --- a/Histacom2/OS/Win95/Win95.resx +++ b/Histacom2/OS/Win95/Win95.resx @@ -374,7 +374,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACO - hAAAAk1TRnQBSQFMAgEBDQEAARwBAgEcAQIBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA + hAAAAk1TRnQBSQFMAgEBDQEAATQBAgE0AQIBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA AwABgAMAAQEBAAEgBwABASQAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/ AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH//wChAAOAAf8DwAH/ A8AB/wPAAf8DwAH/A8AB/wPAAf8DwAH/A8AB/wPAAf8DwAH/A8AB/wPAAf8DwAH/A8AB/wPAAf8DwAH/ @@ -949,7 +949,7 @@ 580, 17 - 63 + 92 diff --git a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs index d4e8004..cc266c0 100644 --- a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs @@ -74,6 +74,7 @@ this.pictureBox1.Size = new System.Drawing.Size(55, 27); this.pictureBox1.TabIndex = 3; this.pictureBox1.TabStop = false; + this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // // pictureBox2 // @@ -91,6 +92,7 @@ this.pictureBox3.Size = new System.Drawing.Size(227, 23); this.pictureBox3.TabIndex = 5; this.pictureBox3.TabStop = false; + this.pictureBox3.Click += new System.EventHandler(this.pictureBox3_Click); // // GuessTheNumber // diff --git a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs index 31bc5cd..72adc0e 100644 --- a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs +++ b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs @@ -12,9 +12,45 @@ namespace Histacom2.OS.Win95.Win95Apps { public partial class GuessTheNumber : UserControl { + private Random rnd; + private int num; + public GuessTheNumber() { InitializeComponent(); + + rnd = new Random(); + num = rnd.Next(0, 101); + + pictureBox1.MouseDown += (s, a) => pictureBox1.BackgroundImage = Properties.Resources.GTN95_CheckClicked; + pictureBox1.MouseUp += (s, a) => pictureBox1.BackgroundImage = Properties.Resources.GTN95_Check; + pictureBox3.MouseDown += (s, a) => pictureBox3.BackgroundImage = Properties.Resources.GTN95_RestartClicked; + pictureBox3.MouseUp += (s, a) => pictureBox3.BackgroundImage = Properties.Resources.GTN95_Restart; + } + + private void pictureBox3_Click(object sender, EventArgs e) + { + pictureBox2.BackgroundImage = null; + textBox1.Enabled = true; + num = rnd.Next(0, 101); + } + + private void pictureBox1_Click(object sender, EventArgs e) + { + try { + int guess = int.Parse(textBox1.Text); + + if (guess < num) pictureBox2.BackgroundImage = Properties.Resources.GTN95_Higher; + else if (guess > num) pictureBox2.BackgroundImage = Properties.Resources.GTN95_Lower; + else if (guess == num) + { + pictureBox2.BackgroundImage = Properties.Resources.GTN95_Correct; + textBox1.Enabled = false; + } + } catch + { + pictureBox2.BackgroundImage = Properties.Resources.GTN95_Error; + } } } } diff --git a/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.Designer.cs b/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.Designer.cs index a0bd216..29a63e4 100644 --- a/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.Designer.cs @@ -32,30 +32,30 @@ this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel3 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); - this.label10 = new System.Windows.Forms.Label(); - this.button4 = new System.Windows.Forms.Button(); - this.label11 = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.panel2 = new System.Windows.Forms.Panel(); this.button5 = new System.Windows.Forms.Button(); - this.label12 = new System.Windows.Forms.Label(); - this.button6 = new System.Windows.Forms.Button(); - this.label13 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.button4 = new System.Windows.Forms.Button(); + this.label10 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panel3 = new System.Windows.Forms.Panel(); this.button7 = new System.Windows.Forms.Button(); - this.label14 = new System.Windows.Forms.Label(); - this.label15 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.button6 = new System.Windows.Forms.Button(); + this.label12 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.panel4 = new System.Windows.Forms.Panel(); this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); @@ -102,90 +102,63 @@ this.panel1.Size = new System.Drawing.Size(200, 305); this.panel1.TabIndex = 2; // - // panel2 - // - this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel2.Controls.Add(this.button5); - this.panel2.Controls.Add(this.label11); - this.panel2.Controls.Add(this.button4); - this.panel2.Controls.Add(this.label10); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(253, 89); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(200, 305); - this.panel2.TabIndex = 3; - // - // panel3 - // - this.panel3.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel3.Controls.Add(this.button7); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.button6); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label6); - this.panel3.Location = new System.Drawing.Point(489, 89); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(200, 305); - this.panel3.TabIndex = 3; - // - // panel4 + // button3 // - this.panel4.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel4.Controls.Add(this.label16); - this.panel4.Controls.Add(this.label15); - this.panel4.Controls.Add(this.label14); - this.panel4.Controls.Add(this.label3); - this.panel4.Location = new System.Drawing.Point(729, 89); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(200, 305); - this.panel4.TabIndex = 3; + this.button3.BackColor = System.Drawing.Color.Silver; + this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button3.Location = new System.Drawing.Point(124, 149); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(71, 23); + this.button3.TabIndex = 11; + this.button3.Text = "Download"; + this.button3.UseVisualStyleBackColor = false; + this.button3.Click += new System.EventHandler(this.button3_Click); // - // label3 + // button2 // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.Location = new System.Drawing.Point(57, 12); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(83, 16); - this.label3.TabIndex = 4; - this.label3.Text = "Changelog"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.button2.BackColor = System.Drawing.Color.Silver; + this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button2.Location = new System.Drawing.Point(124, 95); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(71, 23); + this.button2.TabIndex = 10; + this.button2.Text = "Download"; + this.button2.UseVisualStyleBackColor = false; + this.button2.Click += new System.EventHandler(this.button2_Click); // - // label4 + // button1 // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label4.Location = new System.Drawing.Point(39, 12); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(122, 16); - this.label4.TabIndex = 5; - this.label4.Text = "Games/Software"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.button1.BackColor = System.Drawing.Color.Silver; + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Location = new System.Drawing.Point(124, 47); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(71, 23); + this.button1.TabIndex = 9; + this.button1.Text = "Download"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); // - // label5 + // label9 // - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label5.Location = new System.Drawing.Point(44, 12); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(112, 16); - this.label5.TabIndex = 6; - this.label5.Text = "Customizations"; - this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label9.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label9.Location = new System.Drawing.Point(3, 154); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(56, 13); + this.label9.TabIndex = 8; + this.label9.Text = "FTP Client"; // - // label6 + // label8 // - this.label6.AutoSize = true; - this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.Location = new System.Drawing.Point(38, 12); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(124, 16); - this.label6.TabIndex = 5; - this.label6.Text = "Example Viruses"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label8.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label8.Location = new System.Drawing.Point(3, 100); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(82, 13); + this.label8.TabIndex = 7; + this.label8.Text = "Web Chat 1998"; // // label7 // @@ -198,62 +171,63 @@ this.label7.TabIndex = 6; this.label7.Text = "Guess The Number V1"; // - // label8 + // label4 // - this.label8.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label8.AutoSize = true; - this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label8.Location = new System.Drawing.Point(3, 100); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(82, 13); - this.label8.TabIndex = 7; - this.label8.Text = "Web Chat 1998"; + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(39, 12); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(122, 16); + this.label4.TabIndex = 5; + this.label4.Text = "Games/Software"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label9 + // panel2 // - this.label9.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label9.AutoSize = true; - this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label9.Location = new System.Drawing.Point(3, 154); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(56, 13); - this.label9.TabIndex = 8; - this.label9.Text = "FTP Client"; + this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel2.Controls.Add(this.button5); + this.panel2.Controls.Add(this.label11); + this.panel2.Controls.Add(this.button4); + this.panel2.Controls.Add(this.label10); + this.panel2.Controls.Add(this.label5); + this.panel2.Location = new System.Drawing.Point(253, 89); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(200, 305); + this.panel2.TabIndex = 3; // - // button1 + // button5 // - this.button1.BackColor = System.Drawing.Color.Silver; - this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(124, 47); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(71, 23); - this.button1.TabIndex = 9; - this.button1.Text = "Download"; - this.button1.UseVisualStyleBackColor = false; + this.button5.BackColor = System.Drawing.Color.Silver; + this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button5.Location = new System.Drawing.Point(152, 95); + this.button5.Name = "button5"; + this.button5.Size = new System.Drawing.Size(43, 23); + this.button5.TabIndex = 12; + this.button5.Text = "Info"; + this.button5.UseVisualStyleBackColor = false; // - // button2 + // label11 // - this.button2.BackColor = System.Drawing.Color.Silver; - this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button2.Location = new System.Drawing.Point(124, 95); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(71, 23); - this.button2.TabIndex = 10; - this.button2.Text = "Download"; - this.button2.UseVisualStyleBackColor = false; - this.button2.Click += new System.EventHandler(this.button2_Click); + this.label11.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label11.Location = new System.Drawing.Point(3, 100); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(68, 13); + this.label11.TabIndex = 11; + this.label11.Text = "Skindows 95"; // - // button3 + // button4 // - this.button3.BackColor = System.Drawing.Color.Silver; - this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button3.Location = new System.Drawing.Point(124, 149); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(71, 23); - this.button3.TabIndex = 11; - this.button3.Text = "Download"; - this.button3.UseVisualStyleBackColor = false; - this.button3.Click += new System.EventHandler(this.button3_Click); + this.button4.BackColor = System.Drawing.Color.Silver; + this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button4.Location = new System.Drawing.Point(79, 47); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(116, 23); + this.button4.TabIndex = 10; + this.button4.Text = "View Backgrounds"; + this.button4.UseVisualStyleBackColor = false; // // label10 // @@ -266,49 +240,52 @@ this.label10.TabIndex = 7; this.label10.Text = "Backgrounds"; // - // button4 + // label5 // - this.button4.BackColor = System.Drawing.Color.Silver; - this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button4.Location = new System.Drawing.Point(79, 47); - this.button4.Name = "button4"; - this.button4.Size = new System.Drawing.Size(116, 23); - this.button4.TabIndex = 10; - this.button4.Text = "View Backgrounds"; - this.button4.UseVisualStyleBackColor = false; + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label5.Location = new System.Drawing.Point(44, 12); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(112, 16); + this.label5.TabIndex = 6; + this.label5.Text = "Customizations"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label11 + // panel3 // - this.label11.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label11.AutoSize = true; - this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label11.Location = new System.Drawing.Point(3, 100); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(68, 13); - this.label11.TabIndex = 11; - this.label11.Text = "Skindows 95"; + this.panel3.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel3.Controls.Add(this.button7); + this.panel3.Controls.Add(this.label13); + this.panel3.Controls.Add(this.button6); + this.panel3.Controls.Add(this.label12); + this.panel3.Controls.Add(this.label6); + this.panel3.Location = new System.Drawing.Point(489, 89); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(200, 305); + this.panel3.TabIndex = 3; // - // button5 + // button7 // - this.button5.BackColor = System.Drawing.Color.Silver; - this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button5.Location = new System.Drawing.Point(152, 95); - this.button5.Name = "button5"; - this.button5.Size = new System.Drawing.Size(43, 23); - this.button5.TabIndex = 12; - this.button5.Text = "Info"; - this.button5.UseVisualStyleBackColor = false; + this.button7.BackColor = System.Drawing.Color.Silver; + this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button7.Location = new System.Drawing.Point(124, 95); + this.button7.Name = "button7"; + this.button7.Size = new System.Drawing.Size(71, 23); + this.button7.TabIndex = 12; + this.button7.Text = "Download"; + this.button7.UseVisualStyleBackColor = false; // - // label12 + // label13 // - this.label12.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label12.AutoSize = true; - this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label12.Location = new System.Drawing.Point(3, 52); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(82, 13); - this.label12.TabIndex = 7; - this.label12.Text = "Start Runner 95"; + this.label13.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label13.AutoSize = true; + this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label13.Location = new System.Drawing.Point(3, 100); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(79, 13); + this.label13.TabIndex = 11; + this.label13.Text = "Error Blaster 95"; // // button6 // @@ -321,38 +298,51 @@ this.button6.Text = "Download"; this.button6.UseVisualStyleBackColor = false; // - // label13 + // label12 // - this.label13.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label13.AutoSize = true; - this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label13.Location = new System.Drawing.Point(3, 100); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(79, 13); - this.label13.TabIndex = 11; - this.label13.Text = "Error Blaster 95"; + this.label12.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label12.Location = new System.Drawing.Point(3, 52); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(82, 13); + this.label12.TabIndex = 7; + this.label12.Text = "Start Runner 95"; // - // button7 + // label6 // - this.button7.BackColor = System.Drawing.Color.Silver; - this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button7.Location = new System.Drawing.Point(124, 95); - this.button7.Name = "button7"; - this.button7.Size = new System.Drawing.Size(71, 23); - this.button7.TabIndex = 12; - this.button7.Text = "Download"; - this.button7.UseVisualStyleBackColor = false; + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label6.Location = new System.Drawing.Point(38, 12); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(124, 16); + this.label6.TabIndex = 5; + this.label6.Text = "Example Viruses"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label14 + // panel4 // - this.label14.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label14.AutoSize = true; - this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label14.Location = new System.Drawing.Point(25, 52); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(148, 13); - this.label14.TabIndex = 8; - this.label14.Text = "1996: 12padams.com created"; + this.panel4.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel4.Controls.Add(this.label16); + this.panel4.Controls.Add(this.label15); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.label3); + this.panel4.Location = new System.Drawing.Point(729, 89); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(200, 305); + this.panel4.TabIndex = 3; + // + // label16 + // + this.label16.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label16.Location = new System.Drawing.Point(3, 131); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(192, 69); + this.label16.TabIndex = 10; + this.label16.Text = resources.GetString("label16.Text"); + this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label15 // @@ -365,16 +355,27 @@ this.label15.TabIndex = 9; this.label15.Text = "1997: Software added to the site"; // - // label16 + // label14 // - this.label16.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label16.Location = new System.Drawing.Point(3, 131); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(192, 69); - this.label16.TabIndex = 10; - this.label16.Text = resources.GetString("label16.Text"); - this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label14.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label14.AutoSize = true; + this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label14.Location = new System.Drawing.Point(25, 52); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(148, 13); + this.label14.TabIndex = 8; + this.label14.Text = "1996: 12padams.com created"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.Location = new System.Drawing.Point(57, 12); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(83, 16); + this.label3.TabIndex = 4; + this.label3.Text = "Changelog"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label17 // diff --git a/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.cs b/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.cs index e0edaff..ef5b058 100644 --- a/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.cs +++ b/Histacom2/OS/Win95/Win95Apps/IE4Sites/12padams1998.cs @@ -32,6 +32,7 @@ namespace Histacom2.OS.Win95.Win95Apps.IE4Sites WindowManager wm = new WindowManager(); wm.StartWin95(opendownload, "Downloader", null, false, true); opendownload.appName.Text = "Downloading: FTP Client"; + opendownload.amountToDL = 56; } private void button2_Click(object sender, EventArgs e) @@ -40,6 +41,7 @@ namespace Histacom2.OS.Win95.Win95Apps.IE4Sites WindowManager wm = new WindowManager(); wm.StartWin95(opendownload, "Downloader", null, false, true); opendownload.appName.Text = "Downloading: Web Chat"; + opendownload.amountToDL = 35; } private void label17_Click(object sender, EventArgs e) @@ -134,5 +136,14 @@ namespace Histacom2.OS.Win95.Win95Apps.IE4Sites label16.Text = "Password: projectDeath98"; Refresh(); } + + private void button1_Click(object sender, EventArgs e) + { + WinClassicDownloader opendownload = new WinClassicDownloader(); + WindowManager wm = new WindowManager(); + wm.StartWin95(opendownload, "Downloader", null, false, true); + opendownload.appName.Text = "Downloading: Guess The Number V1"; + opendownload.amountToDL = 16; + } } } 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); diff --git a/Histacom2/Properties/Resources.resx b/Histacom2/Properties/Resources.resx index 7cdf3e4..c58cdda 100644 --- a/Histacom2/Properties/Resources.resx +++ b/Histacom2/Properties/Resources.resx @@ -1891,7 +1891,37 @@ ..\Resources\TitleScreen\CopyrightNotice.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\GuessTheNumber\GTN95_Correct.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\GuessTheNumber\GTN95_Error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\GuessTheNumber\GTN95_Lower.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\HistacomIcon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\WinClassic\TimeDistorter1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\WinClassic\TimeDistorter1Icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\WinClassic\WinClassicFTP.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\WinClassic\WinClassicFTPIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\WinClassic\WinClassicGTN.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\WinClassic\WinClassicGTNIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\WinClassic\WinClassicWebchat.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Histacom2/Properties/Resources1.Designer.cs b/Histacom2/Properties/Resources1.Designer.cs index acc22e2..6b2342b 100644 --- a/Histacom2/Properties/Resources1.Designer.cs +++ b/Histacom2/Properties/Resources1.Designer.cs @@ -224,6 +224,26 @@ namespace Histacom2.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap GTN95_Correct { + get { + object obj = ResourceManager.GetObject("GTN95_Correct", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap GTN95_Error { + get { + object obj = ResourceManager.GetObject("GTN95_Error", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -234,6 +254,16 @@ namespace Histacom2.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap GTN95_Lower { + get { + object obj = ResourceManager.GetObject("GTN95_Lower", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -953,6 +983,26 @@ namespace Histacom2.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap TimeDistorter1 { + get { + object obj = ResourceManager.GetObject("TimeDistorter1", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap TimeDistorter1Icon { + get { + object obj = ResourceManager.GetObject("TimeDistorter1Icon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1473,6 +1523,26 @@ namespace Histacom2.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap WinClassicFTP { + get { + object obj = ResourceManager.GetObject("WinClassicFTP", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap WinClassicFTPIcon { + get { + object obj = ResourceManager.GetObject("WinClassicFTPIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1483,6 +1553,26 @@ namespace Histacom2.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap WinClassicGTN { + get { + object obj = ResourceManager.GetObject("WinClassicGTN", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap WinClassicGTNIcon { + get { + object obj = ResourceManager.GetObject("WinClassicGTNIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1803,6 +1893,16 @@ namespace Histacom2.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap WinClassicWebchat { + get { + object obj = ResourceManager.GetObject("WinClassicWebchat", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/Histacom2/Resources/GuessTheNumber/GTN95_Correct.png b/Histacom2/Resources/GuessTheNumber/GTN95_Correct.png new file mode 100644 index 0000000..ad1ecca Binary files /dev/null and b/Histacom2/Resources/GuessTheNumber/GTN95_Correct.png differ diff --git a/Histacom2/Resources/GuessTheNumber/GTN95_Error.png b/Histacom2/Resources/GuessTheNumber/GTN95_Error.png new file mode 100644 index 0000000..a5ca258 Binary files /dev/null and b/Histacom2/Resources/GuessTheNumber/GTN95_Error.png differ diff --git a/Histacom2/Resources/GuessTheNumber/GTN95_Lower.png b/Histacom2/Resources/GuessTheNumber/GTN95_Lower.png new file mode 100644 index 0000000..286f474 Binary files /dev/null and b/Histacom2/Resources/GuessTheNumber/GTN95_Lower.png differ diff --git a/Histacom2/Resources/WinClassic/TimeDistorter1.png b/Histacom2/Resources/WinClassic/TimeDistorter1.png new file mode 100644 index 0000000..f2424ec Binary files /dev/null and b/Histacom2/Resources/WinClassic/TimeDistorter1.png differ diff --git a/Histacom2/Resources/WinClassic/TimeDistorter1Icon.png b/Histacom2/Resources/WinClassic/TimeDistorter1Icon.png new file mode 100644 index 0000000..0039d59 Binary files /dev/null and b/Histacom2/Resources/WinClassic/TimeDistorter1Icon.png differ diff --git a/Histacom2/Resources/WinClassic/WinClassicFTP.png b/Histacom2/Resources/WinClassic/WinClassicFTP.png new file mode 100644 index 0000000..487a81e Binary files /dev/null and b/Histacom2/Resources/WinClassic/WinClassicFTP.png differ diff --git a/Histacom2/Resources/WinClassic/WinClassicFTPIcon.png b/Histacom2/Resources/WinClassic/WinClassicFTPIcon.png new file mode 100644 index 0000000..e5a00ab Binary files /dev/null and b/Histacom2/Resources/WinClassic/WinClassicFTPIcon.png differ diff --git a/Histacom2/Resources/WinClassic/WinClassicGTN.png b/Histacom2/Resources/WinClassic/WinClassicGTN.png new file mode 100644 index 0000000..43b4ca7 Binary files /dev/null and b/Histacom2/Resources/WinClassic/WinClassicGTN.png differ diff --git a/Histacom2/Resources/WinClassic/WinClassicGTNIcon.png b/Histacom2/Resources/WinClassic/WinClassicGTNIcon.png new file mode 100644 index 0000000..64e5509 Binary files /dev/null and b/Histacom2/Resources/WinClassic/WinClassicGTNIcon.png differ -- cgit v1.2.3