From 3306d36ecbc024775972e5cf7971b2a7a70671d0 Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 23 Aug 2017 13:38:40 -0400 Subject: Renaming the game! --- .../WinClassicCalculator.Designer.cs | 646 +++++++++++++++++++++ Histacom2/GlobalPrograms/WinClassicCalculator.cs | 175 ++++++ Histacom2/GlobalPrograms/WinClassicCalculator.resx | 126 ++++ .../WinClassicDownloader.Designer.cs | 124 ++++ Histacom2/GlobalPrograms/WinClassicDownloader.cs | 86 +++ Histacom2/GlobalPrograms/WinClassicDownloader.resx | 126 ++++ .../GlobalPrograms/WinClassicNotepad.Designer.cs | 376 ++++++++++++ Histacom2/GlobalPrograms/WinClassicNotepad.cs | 118 ++++ Histacom2/GlobalPrograms/WinClassicNotepad.resx | 120 ++++ 9 files changed, 1897 insertions(+) create mode 100644 Histacom2/GlobalPrograms/WinClassicCalculator.Designer.cs create mode 100644 Histacom2/GlobalPrograms/WinClassicCalculator.cs create mode 100644 Histacom2/GlobalPrograms/WinClassicCalculator.resx create mode 100644 Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs create mode 100644 Histacom2/GlobalPrograms/WinClassicDownloader.cs create mode 100644 Histacom2/GlobalPrograms/WinClassicDownloader.resx create mode 100644 Histacom2/GlobalPrograms/WinClassicNotepad.Designer.cs create mode 100644 Histacom2/GlobalPrograms/WinClassicNotepad.cs create mode 100644 Histacom2/GlobalPrograms/WinClassicNotepad.resx (limited to 'Histacom2/GlobalPrograms') diff --git a/Histacom2/GlobalPrograms/WinClassicCalculator.Designer.cs b/Histacom2/GlobalPrograms/WinClassicCalculator.Designer.cs new file mode 100644 index 0000000..6f03978 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicCalculator.Designer.cs @@ -0,0 +1,646 @@ +namespace Histacom2.OS.Win95.Win95Apps +{ + partial class WinClassicCalculator + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + this.HelpToolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); + this.AboutCalculatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.StandardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.ScientificToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.HelpToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.PasteCtrlVToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.CopyCtrlCToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.EditToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.txtNumbers = new System.Windows.Forms.TextBox(); + this.Button27 = new System.Windows.Forms.Button(); + this.Button26 = new System.Windows.Forms.Button(); + this.Button1 = new System.Windows.Forms.Button(); + this.Button25 = new System.Windows.Forms.Button(); + this.Button2 = new System.Windows.Forms.Button(); + this.Button21 = new System.Windows.Forms.Button(); + this.Button3 = new System.Windows.Forms.Button(); + this.Button22 = new System.Windows.Forms.Button(); + this.Button4 = new System.Windows.Forms.Button(); + this.Button23 = new System.Windows.Forms.Button(); + this.Button11 = new System.Windows.Forms.Button(); + this.Button7 = new System.Windows.Forms.Button(); + this.Button16 = new System.Windows.Forms.Button(); + this.Button24 = new System.Windows.Forms.Button(); + this.Button12 = new System.Windows.Forms.Button(); + this.one = new System.Windows.Forms.Button(); + this.Button15 = new System.Windows.Forms.Button(); + this.Button17 = new System.Windows.Forms.Button(); + this.Button13 = new System.Windows.Forms.Button(); + this.Button5 = new System.Windows.Forms.Button(); + this.Button14 = new System.Windows.Forms.Button(); + this.Button18 = new System.Windows.Forms.Button(); + this.Button8 = new System.Windows.Forms.Button(); + this.Button10 = new System.Windows.Forms.Button(); + this.Button20 = new System.Windows.Forms.Button(); + this.Button19 = new System.Windows.Forms.Button(); + this.Button9 = new System.Windows.Forms.Button(); + this.MenuStrip2 = new System.Windows.Forms.MenuStrip(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.MenuStrip2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // timer1 + // + this.timer1.Interval = 1; + // + // HelpToolStripMenuItem3 + // + this.HelpToolStripMenuItem3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.AboutCalculatorToolStripMenuItem}); + this.HelpToolStripMenuItem3.Name = "HelpToolStripMenuItem3"; + this.HelpToolStripMenuItem3.Size = new System.Drawing.Size(41, 20); + this.HelpToolStripMenuItem3.Text = "Help"; + // + // AboutCalculatorToolStripMenuItem + // + this.AboutCalculatorToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.AboutCalculatorToolStripMenuItem.Name = "AboutCalculatorToolStripMenuItem"; + this.AboutCalculatorToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.AboutCalculatorToolStripMenuItem.Text = "About Calculator"; + this.AboutCalculatorToolStripMenuItem.Click += new System.EventHandler(this.AboutCalculatorToolStripMenuItem_Click); + // + // StandardToolStripMenuItem + // + this.StandardToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.StandardToolStripMenuItem.Name = "StandardToolStripMenuItem"; + this.StandardToolStripMenuItem.Size = new System.Drawing.Size(117, 22); + this.StandardToolStripMenuItem.Text = "Standard"; + // + // ScientificToolStripMenuItem + // + this.ScientificToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.ScientificToolStripMenuItem.Name = "ScientificToolStripMenuItem"; + this.ScientificToolStripMenuItem.Size = new System.Drawing.Size(117, 22); + this.ScientificToolStripMenuItem.Text = "Scientific"; + // + // HelpToolStripMenuItem2 + // + this.HelpToolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.ScientificToolStripMenuItem, + this.StandardToolStripMenuItem}); + this.HelpToolStripMenuItem2.Name = "HelpToolStripMenuItem2"; + this.HelpToolStripMenuItem2.Size = new System.Drawing.Size(42, 20); + this.HelpToolStripMenuItem2.Text = "View"; + // + // PasteCtrlVToolStripMenuItem1 + // + this.PasteCtrlVToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; + this.PasteCtrlVToolStripMenuItem1.Name = "PasteCtrlVToolStripMenuItem1"; + this.PasteCtrlVToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.PasteCtrlVToolStripMenuItem1.Text = "Paste Ctrl+V"; + this.PasteCtrlVToolStripMenuItem1.Click += new System.EventHandler(this.PasteCtrlVToolStripMenuItem1_Click); + // + // CopyCtrlCToolStripMenuItem1 + // + this.CopyCtrlCToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; + this.CopyCtrlCToolStripMenuItem1.Name = "CopyCtrlCToolStripMenuItem1"; + this.CopyCtrlCToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.CopyCtrlCToolStripMenuItem1.Text = "Copy Ctrl+C"; + this.CopyCtrlCToolStripMenuItem1.Click += new System.EventHandler(this.CopyCtrlCToolStripMenuItem1_Click); + // + // EditToolStripMenuItem1 + // + this.EditToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; + this.EditToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.CopyCtrlCToolStripMenuItem1, + this.PasteCtrlVToolStripMenuItem1}); + this.EditToolStripMenuItem1.Name = "EditToolStripMenuItem1"; + this.EditToolStripMenuItem1.Size = new System.Drawing.Size(37, 20); + this.EditToolStripMenuItem1.Text = "Edit"; + // + // txtNumbers + // + this.txtNumbers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtNumbers.BackColor = System.Drawing.Color.White; + this.txtNumbers.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.txtNumbers.Location = new System.Drawing.Point(11, 39); + this.txtNumbers.Margin = new System.Windows.Forms.Padding(4); + this.txtNumbers.Multiline = true; + this.txtNumbers.Name = "txtNumbers"; + this.txtNumbers.ReadOnly = true; + this.txtNumbers.Size = new System.Drawing.Size(249, 26); + this.txtNumbers.TabIndex = 85; + this.txtNumbers.Text = "0"; + this.txtNumbers.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // Button27 + // + this.Button27.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.Button27.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button27.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button27.ForeColor = System.Drawing.Color.Firebrick; + this.Button27.Location = new System.Drawing.Point(159, 71); + this.Button27.Name = "Button27"; + this.Button27.Size = new System.Drawing.Size(49, 28); + this.Button27.TabIndex = 84; + this.Button27.Text = "CE"; + this.Button27.UseVisualStyleBackColor = true; + this.Button27.Click += new System.EventHandler(this.Button27_Click); + // + // Button26 + // + this.Button26.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.Button26.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button26.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button26.ForeColor = System.Drawing.Color.Firebrick; + this.Button26.Location = new System.Drawing.Point(210, 71); + this.Button26.Name = "Button26"; + this.Button26.Size = new System.Drawing.Size(49, 28); + this.Button26.TabIndex = 83; + this.Button26.Text = "C"; + this.Button26.UseVisualStyleBackColor = true; + this.Button26.Click += new System.EventHandler(this.Button26_Click); + // + // Button1 + // + this.Button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button1.ForeColor = System.Drawing.Color.Red; + this.Button1.Location = new System.Drawing.Point(11, 139); + this.Button1.Name = "Button1"; + this.Button1.Size = new System.Drawing.Size(36, 28); + this.Button1.TabIndex = 58; + this.Button1.Text = "MR"; + this.Button1.UseVisualStyleBackColor = true; + // + // Button25 + // + this.Button25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.Button25.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button25.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button25.ForeColor = System.Drawing.Color.Firebrick; + this.Button25.Location = new System.Drawing.Point(104, 71); + this.Button25.Name = "Button25"; + this.Button25.Size = new System.Drawing.Size(49, 28); + this.Button25.TabIndex = 82; + this.Button25.Text = "Back"; + this.Button25.UseVisualStyleBackColor = true; + this.Button25.Click += new System.EventHandler(this.Button25_Click); + // + // Button2 + // + this.Button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.Button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button2.ForeColor = System.Drawing.Color.Red; + this.Button2.Location = new System.Drawing.Point(11, 207); + this.Button2.Name = "Button2"; + this.Button2.Size = new System.Drawing.Size(36, 28); + this.Button2.TabIndex = 59; + this.Button2.Text = "M+"; + this.Button2.UseVisualStyleBackColor = true; + // + // Button21 + // + this.Button21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button21.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button21.ForeColor = System.Drawing.Color.Red; + this.Button21.Location = new System.Drawing.Point(223, 207); + this.Button21.Name = "Button21"; + this.Button21.Size = new System.Drawing.Size(36, 28); + this.Button21.TabIndex = 81; + this.Button21.Text = "="; + this.Button21.UseVisualStyleBackColor = true; + this.Button21.Click += new System.EventHandler(this.Button21_Click); + // + // Button3 + // + this.Button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.Button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button3.ForeColor = System.Drawing.Color.Red; + this.Button3.Location = new System.Drawing.Point(11, 173); + this.Button3.Name = "Button3"; + this.Button3.Size = new System.Drawing.Size(36, 28); + this.Button3.TabIndex = 60; + this.Button3.Text = "MS"; + this.Button3.UseVisualStyleBackColor = true; + // + // Button22 + // + this.Button22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button22.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button22.ForeColor = System.Drawing.Color.MidnightBlue; + this.Button22.Location = new System.Drawing.Point(223, 105); + this.Button22.Name = "Button22"; + this.Button22.Size = new System.Drawing.Size(36, 28); + this.Button22.TabIndex = 80; + this.Button22.Text = "sqrt"; + this.Button22.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.Button22.UseVisualStyleBackColor = true; + this.Button22.Click += new System.EventHandler(this.arithmitic_click); + // + // Button4 + // + this.Button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.Button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button4.ForeColor = System.Drawing.Color.Red; + this.Button4.Location = new System.Drawing.Point(11, 105); + this.Button4.Name = "Button4"; + this.Button4.Size = new System.Drawing.Size(36, 28); + this.Button4.TabIndex = 61; + this.Button4.Text = "MC"; + this.Button4.UseVisualStyleBackColor = true; + // + // Button23 + // + this.Button23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button23.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button23.ForeColor = System.Drawing.Color.MidnightBlue; + this.Button23.Location = new System.Drawing.Point(223, 173); + this.Button23.Name = "Button23"; + this.Button23.Size = new System.Drawing.Size(36, 28); + this.Button23.TabIndex = 79; + this.Button23.Text = "1/x"; + this.Button23.UseVisualStyleBackColor = true; + this.Button23.Click += new System.EventHandler(this.arithmitic_click); + // + // Button11 + // + this.Button11.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button11.ForeColor = System.Drawing.Color.Blue; + this.Button11.Location = new System.Drawing.Point(143, 105); + this.Button11.Name = "Button11"; + this.Button11.Size = new System.Drawing.Size(36, 28); + this.Button11.TabIndex = 70; + this.Button11.Text = "9"; + this.Button11.UseVisualStyleBackColor = true; + this.Button11.Click += new System.EventHandler(this.number_click); + // + // Button7 + // + this.Button7.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button7.ForeColor = System.Drawing.Color.Blue; + this.Button7.Location = new System.Drawing.Point(63, 139); + this.Button7.Name = "Button7"; + this.Button7.Size = new System.Drawing.Size(36, 28); + this.Button7.TabIndex = 62; + this.Button7.Text = "4"; + this.Button7.UseVisualStyleBackColor = true; + this.Button7.Click += new System.EventHandler(this.number_click); + // + // Button16 + // + this.Button16.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button16.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button16.ForeColor = System.Drawing.Color.Blue; + this.Button16.Location = new System.Drawing.Point(63, 207); + this.Button16.Name = "Button16"; + this.Button16.Size = new System.Drawing.Size(36, 28); + this.Button16.TabIndex = 71; + this.Button16.Text = "0"; + this.Button16.UseVisualStyleBackColor = true; + this.Button16.Click += new System.EventHandler(this.number_click); + // + // Button24 + // + this.Button24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button24.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button24.ForeColor = System.Drawing.Color.MidnightBlue; + this.Button24.Location = new System.Drawing.Point(223, 139); + this.Button24.Name = "Button24"; + this.Button24.Size = new System.Drawing.Size(36, 28); + this.Button24.TabIndex = 78; + this.Button24.Text = "%"; + this.Button24.UseVisualStyleBackColor = true; + this.Button24.Click += new System.EventHandler(this.arithmitic_click); + // + // Button12 + // + this.Button12.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button12.ForeColor = System.Drawing.Color.Blue; + this.Button12.Location = new System.Drawing.Point(143, 173); + this.Button12.Name = "Button12"; + this.Button12.Size = new System.Drawing.Size(36, 28); + this.Button12.TabIndex = 69; + this.Button12.Text = "3"; + this.Button12.UseVisualStyleBackColor = true; + this.Button12.Click += new System.EventHandler(this.number_click); + // + // one + // + this.one.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.one.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.one.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.one.ForeColor = System.Drawing.Color.Blue; + this.one.Location = new System.Drawing.Point(63, 173); + this.one.Name = "one"; + this.one.Size = new System.Drawing.Size(36, 28); + this.one.TabIndex = 63; + this.one.Text = "1"; + this.one.UseVisualStyleBackColor = true; + this.one.Click += new System.EventHandler(this.number_click); + // + // Button15 + // + this.Button15.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button15.ForeColor = System.Drawing.Color.Blue; + this.Button15.Location = new System.Drawing.Point(103, 207); + this.Button15.Name = "Button15"; + this.Button15.Size = new System.Drawing.Size(36, 28); + this.Button15.TabIndex = 72; + this.Button15.Text = "+/-"; + this.Button15.UseVisualStyleBackColor = true; + this.Button15.Click += new System.EventHandler(this.Button15_Click); + // + // Button17 + // + this.Button17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button17.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button17.ForeColor = System.Drawing.Color.Red; + this.Button17.Location = new System.Drawing.Point(183, 207); + this.Button17.Name = "Button17"; + this.Button17.Size = new System.Drawing.Size(36, 28); + this.Button17.TabIndex = 77; + this.Button17.Text = "+"; + this.Button17.UseVisualStyleBackColor = true; + this.Button17.Click += new System.EventHandler(this.arithmitic_click); + // + // Button13 + // + this.Button13.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button13.ForeColor = System.Drawing.Color.Blue; + this.Button13.Location = new System.Drawing.Point(143, 139); + this.Button13.Name = "Button13"; + this.Button13.Size = new System.Drawing.Size(36, 28); + this.Button13.TabIndex = 68; + this.Button13.Text = "6"; + this.Button13.UseVisualStyleBackColor = true; + this.Button13.Click += new System.EventHandler(this.number_click); + // + // Button5 + // + this.Button5.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button5.ForeColor = System.Drawing.Color.Blue; + this.Button5.Location = new System.Drawing.Point(63, 105); + this.Button5.Name = "Button5"; + this.Button5.Size = new System.Drawing.Size(36, 28); + this.Button5.TabIndex = 64; + this.Button5.Text = "7"; + this.Button5.UseVisualStyleBackColor = true; + this.Button5.Click += new System.EventHandler(this.number_click); + // + // Button14 + // + this.Button14.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button14.ForeColor = System.Drawing.Color.Blue; + this.Button14.Location = new System.Drawing.Point(143, 207); + this.Button14.Name = "Button14"; + this.Button14.Size = new System.Drawing.Size(36, 28); + this.Button14.TabIndex = 73; + this.Button14.Text = "."; + this.Button14.UseVisualStyleBackColor = true; + this.Button14.Click += new System.EventHandler(this.number_click); + // + // Button18 + // + this.Button18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button18.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button18.ForeColor = System.Drawing.Color.Red; + this.Button18.Location = new System.Drawing.Point(183, 105); + this.Button18.Name = "Button18"; + this.Button18.Size = new System.Drawing.Size(36, 28); + this.Button18.TabIndex = 76; + this.Button18.Text = "/"; + this.Button18.UseVisualStyleBackColor = true; + this.Button18.Click += new System.EventHandler(this.arithmitic_click); + // + // Button8 + // + this.Button8.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button8.ForeColor = System.Drawing.Color.Blue; + this.Button8.Location = new System.Drawing.Point(103, 105); + this.Button8.Name = "Button8"; + this.Button8.Size = new System.Drawing.Size(36, 28); + this.Button8.TabIndex = 67; + this.Button8.Text = "8"; + this.Button8.UseVisualStyleBackColor = true; + this.Button8.Click += new System.EventHandler(this.number_click); + // + // Button10 + // + this.Button10.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button10.ForeColor = System.Drawing.Color.Blue; + this.Button10.Location = new System.Drawing.Point(103, 139); + this.Button10.Name = "Button10"; + this.Button10.Size = new System.Drawing.Size(36, 28); + this.Button10.TabIndex = 65; + this.Button10.Text = "5"; + this.Button10.UseVisualStyleBackColor = true; + this.Button10.Click += new System.EventHandler(this.number_click); + // + // Button20 + // + this.Button20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button20.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button20.ForeColor = System.Drawing.Color.Red; + this.Button20.Location = new System.Drawing.Point(183, 139); + this.Button20.Name = "Button20"; + this.Button20.Size = new System.Drawing.Size(36, 28); + this.Button20.TabIndex = 74; + this.Button20.Text = "*"; + this.Button20.UseVisualStyleBackColor = true; + this.Button20.Click += new System.EventHandler(this.arithmitic_click); + // + // Button19 + // + this.Button19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.Button19.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button19.ForeColor = System.Drawing.Color.Red; + this.Button19.Location = new System.Drawing.Point(183, 173); + this.Button19.Name = "Button19"; + this.Button19.Size = new System.Drawing.Size(36, 28); + this.Button19.TabIndex = 75; + this.Button19.Text = "-"; + this.Button19.UseVisualStyleBackColor = true; + this.Button19.Click += new System.EventHandler(this.arithmitic_click); + // + // Button9 + // + this.Button9.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.Button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Button9.ForeColor = System.Drawing.Color.Blue; + this.Button9.Location = new System.Drawing.Point(103, 173); + this.Button9.Name = "Button9"; + this.Button9.Size = new System.Drawing.Size(36, 28); + this.Button9.TabIndex = 66; + this.Button9.Text = "2"; + this.Button9.UseVisualStyleBackColor = true; + this.Button9.Click += new System.EventHandler(this.number_click); + // + // MenuStrip2 + // + this.MenuStrip2.BackColor = System.Drawing.Color.Silver; + this.MenuStrip2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.MenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.EditToolStripMenuItem1, + this.HelpToolStripMenuItem2, + this.HelpToolStripMenuItem3}); + this.MenuStrip2.Location = new System.Drawing.Point(0, 0); + this.MenuStrip2.Name = "MenuStrip2"; + this.MenuStrip2.Size = new System.Drawing.Size(270, 24); + this.MenuStrip2.TabIndex = 86; + this.MenuStrip2.Text = "MenuStrip2"; + // + // pictureBox1 + // + this.pictureBox1.BackgroundImage = global::Histacom2.Properties.Resources.ie4_hsplitter; + this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.pictureBox1.Location = new System.Drawing.Point(1, 24); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(268, 2); + this.pictureBox1.TabIndex = 87; + this.pictureBox1.TabStop = false; + // + // WinClassicCalculator + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.txtNumbers); + this.Controls.Add(this.Button27); + this.Controls.Add(this.Button26); + this.Controls.Add(this.Button1); + this.Controls.Add(this.Button25); + this.Controls.Add(this.Button2); + this.Controls.Add(this.Button21); + this.Controls.Add(this.Button3); + this.Controls.Add(this.Button22); + this.Controls.Add(this.Button4); + this.Controls.Add(this.Button23); + this.Controls.Add(this.Button11); + this.Controls.Add(this.Button7); + this.Controls.Add(this.Button16); + this.Controls.Add(this.Button24); + this.Controls.Add(this.Button12); + this.Controls.Add(this.one); + this.Controls.Add(this.Button15); + this.Controls.Add(this.Button17); + this.Controls.Add(this.Button13); + this.Controls.Add(this.Button5); + this.Controls.Add(this.Button14); + this.Controls.Add(this.Button18); + this.Controls.Add(this.Button8); + this.Controls.Add(this.Button10); + this.Controls.Add(this.Button20); + this.Controls.Add(this.Button19); + this.Controls.Add(this.Button9); + this.Controls.Add(this.MenuStrip2); + this.Name = "WinClassicCalculator"; + this.Size = new System.Drawing.Size(270, 247); + this.MenuStrip2.ResumeLayout(false); + this.MenuStrip2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Timer timer1; + internal System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem3; + internal System.Windows.Forms.ToolStripMenuItem AboutCalculatorToolStripMenuItem; + internal System.Windows.Forms.ToolStripMenuItem StandardToolStripMenuItem; + internal System.Windows.Forms.ToolStripMenuItem ScientificToolStripMenuItem; + internal System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem2; + internal System.Windows.Forms.ToolStripMenuItem PasteCtrlVToolStripMenuItem1; + internal System.Windows.Forms.ToolStripMenuItem CopyCtrlCToolStripMenuItem1; + internal System.Windows.Forms.ToolStripMenuItem EditToolStripMenuItem1; + internal System.Windows.Forms.TextBox txtNumbers; + internal System.Windows.Forms.Button Button27; + internal System.Windows.Forms.Button Button26; + internal System.Windows.Forms.Button Button1; + internal System.Windows.Forms.Button Button25; + internal System.Windows.Forms.Button Button2; + internal System.Windows.Forms.Button Button21; + internal System.Windows.Forms.Button Button3; + internal System.Windows.Forms.Button Button22; + internal System.Windows.Forms.Button Button4; + internal System.Windows.Forms.Button Button23; + internal System.Windows.Forms.Button Button11; + internal System.Windows.Forms.Button Button7; + internal System.Windows.Forms.Button Button16; + internal System.Windows.Forms.Button Button24; + internal System.Windows.Forms.Button Button12; + internal System.Windows.Forms.Button one; + internal System.Windows.Forms.Button Button15; + internal System.Windows.Forms.Button Button17; + internal System.Windows.Forms.Button Button13; + internal System.Windows.Forms.Button Button5; + internal System.Windows.Forms.Button Button14; + internal System.Windows.Forms.Button Button18; + internal System.Windows.Forms.Button Button8; + internal System.Windows.Forms.Button Button10; + internal System.Windows.Forms.Button Button20; + internal System.Windows.Forms.Button Button19; + internal System.Windows.Forms.Button Button9; + internal System.Windows.Forms.MenuStrip MenuStrip2; + private System.Windows.Forms.PictureBox pictureBox1; + } +} diff --git a/Histacom2/GlobalPrograms/WinClassicCalculator.cs b/Histacom2/GlobalPrograms/WinClassicCalculator.cs new file mode 100644 index 0000000..7f04e85 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicCalculator.cs @@ -0,0 +1,175 @@ +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 Histacom2.Engine; + +namespace Histacom2.OS.Win95.Win95Apps +{ + public partial class WinClassicCalculator : UserControl + { + double prevnum = 0; + string operation = ""; + bool operation_pressed = false; + public WinClassicCalculator() + { + InitializeComponent(); + foreach (Control c in Controls) + { + if (c is Button) + { + c.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0))); + c.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2); + } + else + { + c.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + } + } + txtNumbers.Paint += (sender, args) => Paintbrush.PaintClassicBordersIndented(sender, args, 2); + } + private void number_click(object sender, EventArgs e) + { + if (txtNumbers.Text.Contains("∞")) + txtNumbers.Clear(); + if ((txtNumbers.Text == "0") || (operation_pressed)) + txtNumbers.Text = ""; + operation_pressed = false; + Button num = (Button)sender; + if (num.Text == ".") + { + if (!txtNumbers.Text.Contains(".")) + txtNumbers.Text = txtNumbers.Text + num.Text; + } + else + txtNumbers.Text = txtNumbers.Text + num.Text; + } + + private void Button27_Click(object sender, EventArgs e) + { + txtNumbers.Text = "0"; + } + + private void Button26_Click(object sender, EventArgs e) + { + prevnum = 0; + operation = ""; + operation_pressed = false; + txtNumbers.Text = "0"; + } + + private void Button25_Click(object sender, EventArgs e) + { + if (txtNumbers.Text.Length>0) + { + txtNumbers.Text = txtNumbers.Text.Remove(txtNumbers.Text.Length - 1, 1); + } + if (txtNumbers.Text =="") + { + txtNumbers.Text = "0"; + } + } + + private void arithmitic_click(object sender, EventArgs e) + { + Button num = (Button)sender; + if (txtNumbers.Text.Contains("∞")) + txtNumbers.Clear(); + if (prevnum != 0) + { + if (num.Text == "sqrt") + prevnum = Math.Sqrt(double.Parse(txtNumbers.Text)); + if (num.Text == "1/x") + prevnum = Convert.ToDouble(1.0 / Convert.ToDouble(txtNumbers.Text)); + if (num.Text == "%") + prevnum = Convert.ToDouble(txtNumbers.Text) / 100; + Button21.PerformClick(); + operation = num.Text; + operation_pressed = true; + } + else if (num.Text == "sqrt") + { + prevnum = Math.Sqrt(double.Parse(txtNumbers.Text)); + txtNumbers.Text = prevnum.ToString(); + } + else if (num.Text == "1/x") + { + prevnum = Convert.ToDouble(1.0 / Convert.ToDouble(txtNumbers.Text)); + txtNumbers.Text = prevnum.ToString(); + } + else if (num.Text == "%") + { + prevnum = Convert.ToDouble(txtNumbers.Text) / 100; + txtNumbers.Text = prevnum.ToString(); + } + else + { + operation = num.Text; + prevnum = double.Parse(txtNumbers.Text); + txtNumbers.Text = "0"; + operation_pressed = true; + } + } + + private void Button21_Click(object sender, EventArgs e) + { + if (txtNumbers.Text.Contains("∞")) + txtNumbers.Clear(); + switch (operation) + { + case "+": + txtNumbers.Text = (prevnum + double.Parse(txtNumbers.Text)).ToString(); + break; + case "-": + txtNumbers.Text = (prevnum - double.Parse(txtNumbers.Text)).ToString(); + break; + case "*": + txtNumbers.Text = (prevnum * double.Parse(txtNumbers.Text)).ToString(); + break; + case "/": + txtNumbers.Text = (prevnum / double.Parse(txtNumbers.Text)).ToString(); + break; + } + prevnum = Int32.Parse(txtNumbers.Text); + operation = ""; + } + + private void AboutCalculatorToolStripMenuItem_Click(object sender, EventArgs e) + { + WindowManager wm = new WindowManager(); + wm.StartAboutBox95("Calculator", "Microsoft Calculator", Properties.Resources.WinClassicCalc); + } + + private void Button15_Click(object sender, EventArgs e) + { + + } + + private void CopyCtrlCToolStripMenuItem1_Click(object sender, EventArgs e) + { + txtNumbers.Copy(); + } + + private void PasteCtrlVToolStripMenuItem1_Click(object sender, EventArgs e) + { + string pasteText = Clipboard.GetText(); + string strippedText = ""; + for (int i = 0; i < pasteText.Length; i++) + { + if (char.IsDigit(pasteText[i])) + strippedText += pasteText[i].ToString(); + MessageBox.Show("Test"); + } + if (strippedText!=pasteText) + { + txtNumbers.Text = pasteText; + } + } + + } +} diff --git a/Histacom2/GlobalPrograms/WinClassicCalculator.resx b/Histacom2/GlobalPrograms/WinClassicCalculator.resx new file mode 100644 index 0000000..d7509b3 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicCalculator.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 219, 17 + + + 306, 17 + + \ No newline at end of file diff --git a/Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs b/Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs new file mode 100644 index 0000000..a3ae890 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs @@ -0,0 +1,124 @@ +namespace Histacom2.OS.Win95.Win95Apps +{ + partial class WinClassicDownloader + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.amountLbl = new System.Windows.Forms.Label(); + this.appName = new System.Windows.Forms.Label(); + this.locationLbl = new System.Windows.Forms.Label(); + this.transferLbl = new System.Windows.Forms.Label(); + this.dlTimer = new System.Windows.Forms.Timer(this.components); + this.dlSpeed = new System.Windows.Forms.Timer(this.components); + this.progBar = new System.Windows.Forms.ProgressBar(); + this.SuspendLayout(); + // + // amountLbl + // + this.amountLbl.AutoSize = true; + this.amountLbl.BackColor = System.Drawing.Color.Transparent; + this.amountLbl.Location = new System.Drawing.Point(1, 63); + this.amountLbl.Name = "amountLbl"; + this.amountLbl.Size = new System.Drawing.Size(114, 13); + this.amountLbl.TabIndex = 14; + this.amountLbl.Text = "Downloaded 0kb /0kb"; + // + // appName + // + this.appName.AutoSize = true; + this.appName.Location = new System.Drawing.Point(3, 15); + this.appName.Name = "appName"; + this.appName.Size = new System.Drawing.Size(39, 13); + this.appName.TabIndex = 11; + this.appName.Text = "Label2"; + // + // locationLbl + // + this.locationLbl.AutoSize = true; + this.locationLbl.Location = new System.Drawing.Point(1, 78); + this.locationLbl.Name = "locationLbl"; + this.locationLbl.Size = new System.Drawing.Size(124, 13); + this.locationLbl.TabIndex = 13; + this.locationLbl.Text = "Downloading to Desktop"; + // + // transferLbl + // + this.transferLbl.AutoSize = true; + this.transferLbl.Location = new System.Drawing.Point(0, 94); + this.transferLbl.Name = "transferLbl"; + this.transferLbl.Size = new System.Drawing.Size(73, 13); + this.transferLbl.TabIndex = 12; + this.transferLbl.Text = "Transfer rate: "; + // + // dlTimer + // + this.dlTimer.Interval = 1000; + this.dlTimer.Tick += new System.EventHandler(this.dlTimer_Tick); + // + // dlSpeed + // + this.dlSpeed.Interval = 750; + this.dlSpeed.Tick += new System.EventHandler(this.dlSpeed_Tick); + // + // progBar + // + this.progBar.BackColor = System.Drawing.Color.Silver; + this.progBar.ForeColor = System.Drawing.Color.Navy; + this.progBar.Location = new System.Drawing.Point(6, 32); + this.progBar.Name = "progBar"; + this.progBar.Size = new System.Drawing.Size(399, 23); + this.progBar.TabIndex = 15; + // + // WinClassicDownloader + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.progBar); + this.Controls.Add(this.amountLbl); + this.Controls.Add(this.appName); + this.Controls.Add(this.locationLbl); + this.Controls.Add(this.transferLbl); + this.Name = "WinClassicDownloader"; + this.Size = new System.Drawing.Size(408, 132); + this.Load += new System.EventHandler(this.WinClassicDownloader_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + internal System.Windows.Forms.Label amountLbl; + internal System.Windows.Forms.Label appName; + internal System.Windows.Forms.Label locationLbl; + internal System.Windows.Forms.Label transferLbl; + private System.Windows.Forms.Timer dlTimer; + private System.Windows.Forms.Timer dlSpeed; + private System.Windows.Forms.ProgressBar progBar; + } +} diff --git a/Histacom2/GlobalPrograms/WinClassicDownloader.cs b/Histacom2/GlobalPrograms/WinClassicDownloader.cs new file mode 100644 index 0000000..f454bdb --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicDownloader.cs @@ -0,0 +1,86 @@ +using System; +using System.IO; +using System.Windows.Forms; +using static Histacom2.Engine.SaveSystem; + +namespace Histacom2.OS.Win95.Win95Apps +{ + public partial class WinClassicDownloader : UserControl + { + public WinClassicDownloader() + { + InitializeComponent(); + } + + private string downloadSpeed() + { + Random rnd = new Random(); + return rnd.Next(7, 9).ToString() + "." + rnd.Next(7, 9).ToString() + rnd.Next(7, 9).ToString(); + } + + int amountToDL = 100; + int amountDLed = 0; + + private void WinClassicDownloader_Load(object sender, EventArgs e) + { + dlTimer.Start(); + dlSpeed.Start(); + } + + private void dlTimer_Tick(object sender, EventArgs e) + { + amountDLed = amountDLed + 8; + if (8 > amountToDL - amountDLed) + { + progBar.Value = 100; + amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; + + switch (appName.Text) + { + case "Downloading: FTP Client": + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "FTP Client Setup.exe", "ftp client setup", 11, 56291); + break; + case "Downloading: Web Chat 1998": + 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); + 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") + { + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Start Runner Setup.exe"), "StartRunner"); + } + if (appName.Text == "Downloading: Error Blaster") + { + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Error Blaster Setup.exe"), "ErrorBlaster"); + } + 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(); + } + else + { + progBar.Maximum = amountToDL; + progBar.Value = amountDLed; + } + amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; + } + + private void dlSpeed_Tick(object sender, EventArgs e) + { + transferLbl.Text = $"Transfer speed: {downloadSpeed()} KB/s"; + } + } +} diff --git a/Histacom2/GlobalPrograms/WinClassicDownloader.resx b/Histacom2/GlobalPrograms/WinClassicDownloader.resx new file mode 100644 index 0000000..daf1933 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicDownloader.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 110, 17 + + \ No newline at end of file diff --git a/Histacom2/GlobalPrograms/WinClassicNotepad.Designer.cs b/Histacom2/GlobalPrograms/WinClassicNotepad.Designer.cs new file mode 100644 index 0000000..113ace9 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicNotepad.Designer.cs @@ -0,0 +1,376 @@ +namespace Histacom2.OS.Win95.Win95Apps +{ + partial class WinClassicNotepad + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.pageSetupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.printToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.timeDateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.wordWrapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.searchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.findToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.findNextToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpTopicsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutNotepadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.mainText = new System.Windows.Forms.TextBox(); + this.menuStrip1.SuspendLayout(); + this.SuspendLayout(); + // + // menuStrip1 + // + this.menuStrip1.BackColor = System.Drawing.Color.Silver; + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem, + this.editToolStripMenuItem, + this.searchToolStripMenuItem, + this.helpToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(619, 24); + this.menuStrip1.TabIndex = 0; + this.menuStrip1.Text = "menuStrip1"; + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.fileToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.fileToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newToolStripMenuItem, + this.openToolStripMenuItem, + this.saveToolStripMenuItem, + this.saveAsToolStripMenuItem, + this.pageSetupToolStripMenuItem, + this.printToolStripMenuItem, + this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Text = "File"; + // + // newToolStripMenuItem + // + this.newToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.newToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.newToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.newToolStripMenuItem.Name = "newToolStripMenuItem"; + this.newToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.newToolStripMenuItem.Text = "New"; + // + // openToolStripMenuItem + // + this.openToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.openToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.openToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.openToolStripMenuItem.Name = "openToolStripMenuItem"; + this.openToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.openToolStripMenuItem.Text = "Open..."; + this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.saveToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.saveToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + this.saveToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.saveToolStripMenuItem.Text = "Save"; + this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); + // + // saveAsToolStripMenuItem + // + this.saveAsToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.saveAsToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.saveAsToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; + this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.saveAsToolStripMenuItem.Text = "Save As..."; + // + // pageSetupToolStripMenuItem + // + this.pageSetupToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.pageSetupToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.pageSetupToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pageSetupToolStripMenuItem.Name = "pageSetupToolStripMenuItem"; + this.pageSetupToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.pageSetupToolStripMenuItem.Text = "Page Setup..."; + // + // printToolStripMenuItem + // + this.printToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.printToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.printToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.printToolStripMenuItem.Name = "printToolStripMenuItem"; + this.printToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.printToolStripMenuItem.Text = "Print"; + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.exitToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.exitToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.exitToolStripMenuItem.Text = "Exit"; + this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.editToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.editToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.undoToolStripMenuItem, + this.cutToolStripMenuItem, + this.copyToolStripMenuItem, + this.pasteToolStripMenuItem, + this.deleteToolStripMenuItem, + this.selectAllToolStripMenuItem, + this.timeDateToolStripMenuItem, + this.wordWrapToolStripMenuItem}); + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); + this.editToolStripMenuItem.Text = "Edit"; + // + // undoToolStripMenuItem + // + this.undoToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.undoToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.undoToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; + this.undoToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.undoToolStripMenuItem.Text = "Undo"; + this.undoToolStripMenuItem.Click += new System.EventHandler(this.undoToolStripMenuItem_Click); + // + // cutToolStripMenuItem + // + this.cutToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.cutToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.cutToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; + this.cutToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.cutToolStripMenuItem.Text = "Cut"; + this.cutToolStripMenuItem.Click += new System.EventHandler(this.cutToolStripMenuItem_Click); + // + // copyToolStripMenuItem + // + this.copyToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.copyToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.copyToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; + this.copyToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.copyToolStripMenuItem.Text = "Copy"; + this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click); + // + // pasteToolStripMenuItem + // + this.pasteToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.pasteToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.pasteToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; + this.pasteToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.pasteToolStripMenuItem.Text = "Paste"; + this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click); + // + // deleteToolStripMenuItem + // + this.deleteToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.deleteToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.deleteToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; + this.deleteToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.deleteToolStripMenuItem.Text = "Delete"; + this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click); + // + // selectAllToolStripMenuItem + // + this.selectAllToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.selectAllToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.selectAllToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; + this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.selectAllToolStripMenuItem.Text = "Select All"; + this.selectAllToolStripMenuItem.Click += new System.EventHandler(this.selectAllToolStripMenuItem_Click); + // + // timeDateToolStripMenuItem + // + this.timeDateToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.timeDateToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.timeDateToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.timeDateToolStripMenuItem.Name = "timeDateToolStripMenuItem"; + this.timeDateToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.timeDateToolStripMenuItem.Text = "Time/Date"; + this.timeDateToolStripMenuItem.Click += new System.EventHandler(this.timeDateToolStripMenuItem_Click); + // + // wordWrapToolStripMenuItem + // + this.wordWrapToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.wordWrapToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.wordWrapToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.wordWrapToolStripMenuItem.CheckOnClick = true; + this.wordWrapToolStripMenuItem.Name = "wordWrapToolStripMenuItem"; + this.wordWrapToolStripMenuItem.Size = new System.Drawing.Size(134, 22); + this.wordWrapToolStripMenuItem.Text = "Word Wrap"; + this.wordWrapToolStripMenuItem.Click += new System.EventHandler(this.wordWrapToolStripMenuItem_Click); + // + // searchToolStripMenuItem + // + this.searchToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.searchToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.searchToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.searchToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.searchToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.findToolStripMenuItem, + this.findNextToolStripMenuItem}); + this.searchToolStripMenuItem.Name = "searchToolStripMenuItem"; + this.searchToolStripMenuItem.Size = new System.Drawing.Size(54, 20); + this.searchToolStripMenuItem.Text = "Search"; + // + // findToolStripMenuItem + // + this.findToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.findToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.findToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.findToolStripMenuItem.Name = "findToolStripMenuItem"; + this.findToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.findToolStripMenuItem.Text = "Find..."; + // + // findNextToolStripMenuItem + // + this.findNextToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.findNextToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.findNextToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.findNextToolStripMenuItem.Name = "findNextToolStripMenuItem"; + this.findNextToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.findNextToolStripMenuItem.Text = "Find Next"; + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.helpToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.helpToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.helpToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.helpTopicsToolStripMenuItem, + this.aboutNotepadToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "Help"; + // + // helpTopicsToolStripMenuItem + // + this.helpTopicsToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.helpTopicsToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.helpTopicsToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.helpTopicsToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.helpTopicsToolStripMenuItem.Name = "helpTopicsToolStripMenuItem"; + this.helpTopicsToolStripMenuItem.Size = new System.Drawing.Size(156, 22); + this.helpTopicsToolStripMenuItem.Text = "Help Topics"; + // + // aboutNotepadToolStripMenuItem + // + this.aboutNotepadToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.aboutNotepadToolStripMenuItem.BackgroundImage = global::Histacom2.Properties.Resources.sliversilver; + this.aboutNotepadToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.aboutNotepadToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.aboutNotepadToolStripMenuItem.Name = "aboutNotepadToolStripMenuItem"; + this.aboutNotepadToolStripMenuItem.Size = new System.Drawing.Size(156, 22); + this.aboutNotepadToolStripMenuItem.Text = "About Notepad"; + this.aboutNotepadToolStripMenuItem.Click += new System.EventHandler(this.aboutNotepadToolStripMenuItem_Click); + // + // mainText + // + this.mainText.Dock = System.Windows.Forms.DockStyle.Fill; + this.mainText.Font = new System.Drawing.Font("Courier", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.mainText.Location = new System.Drawing.Point(0, 24); + this.mainText.MaxLength = 131072; + this.mainText.Multiline = true; + this.mainText.Name = "mainText"; + this.mainText.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.mainText.Size = new System.Drawing.Size(619, 341); + this.mainText.TabIndex = 1; + this.mainText.WordWrap = false; + // + // WinClassicNotepad + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mainText); + this.Controls.Add(this.menuStrip1); + this.Name = "WinClassicNotepad"; + this.Size = new System.Drawing.Size(619, 365); + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem pageSetupToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem printToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; + public System.Windows.Forms.TextBox mainText; + private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem timeDateToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem wordWrapToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem searchToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem findToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem findNextToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem helpTopicsToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem aboutNotepadToolStripMenuItem; + } +} diff --git a/Histacom2/GlobalPrograms/WinClassicNotepad.cs b/Histacom2/GlobalPrograms/WinClassicNotepad.cs new file mode 100644 index 0000000..0ed0bb7 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicNotepad.cs @@ -0,0 +1,118 @@ +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 Histacom2.Engine; +using static Histacom2.Engine.FileDialogBoxManager; +using System.IO; + +namespace Histacom2.OS.Win95.Win95Apps +{ + public partial class WinClassicNotepad : UserControl + { + public WinClassicNotepad() + { + InitializeComponent(); + foreach (ToolStripMenuItem item in menuStrip1.Items) + { + item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular); + item.BackColor = Color.Silver; + item.BackgroundImage = Properties.Resources.sliversilver; + item.BackgroundImageLayout = ImageLayout.Center; + item.DisplayStyle = ToolStripItemDisplayStyle.Text; + } + } + + private void exitToolStripMenuItem_Click(object sender, EventArgs e) + { + this.ParentForm.Close(); + } + + private void aboutNotepadToolStripMenuItem_Click(object sender, EventArgs e) + { + WindowManager wm = new WindowManager(); + wm.StartAboutBox95("Notepad", "Microsoft Notepad", Properties.Resources.WinClassicNotepad); + } + + private void wordWrapToolStripMenuItem_Click(object sender, EventArgs e) + { + mainText.WordWrap = wordWrapToolStripMenuItem.Checked; + } + + private void selectAllToolStripMenuItem_Click(object sender, EventArgs e) + { + mainText.SelectAll(); + } + + private void undoToolStripMenuItem_Click(object sender, EventArgs e) + { + mainText.Undo(); + } + + private void cutToolStripMenuItem_Click(object sender, EventArgs e) + { + if (mainText.SelectedText.Length >= 0) mainText.Cut(); + } + + private void copyToolStripMenuItem_Click(object sender, EventArgs e) + { + if (mainText.SelectedText.Length >= 0) mainText.Copy(); + } + + private void pasteToolStripMenuItem_Click(object sender, EventArgs e) + { + mainText.Paste(); + } + + private void deleteToolStripMenuItem_Click(object sender, EventArgs e) + { + mainText.Text.Remove(mainText.SelectionStart, mainText.SelectedText.Length); + } + + private void timeDateToolStripMenuItem_Click(object sender, EventArgs e) + { + string DateTime = System.DateTime.Now.ToString("HH:mm tt dd/MM/yyyy"); + mainText.AppendText(DateTime); + } + + private void openToolStripMenuItem_Click(object sender, EventArgs e) + { + try + { + ActivateSaveFileDialog(".txt"); + string selectedPath = Program.OpenFileExplorerAsDialogAndReturnGivenPath(); + + MessageBox.Show(selectedPath); + if (selectedPath != "") + { + mainText.Text = ReadTextFile(selectedPath); + } + } + catch + { + } + } + + private void saveToolStripMenuItem_Click(object sender, EventArgs e) + { + try + { + ActivateSaveFileDialog(".txt"); + string selectedPath = Program.OpenFileExplorerAsDialogAndReturnGivenPath(); + List pathList = selectedPath.Split('\\').ToList(); + pathList.RemoveAt(selectedPath.Split('\\').Count() - 1); + + if (selectedPath != "") + { + SaveSystem.CreateWindowsFile(pathList.ToString(), selectedPath.Split('\\').Last(), mainText.Text, 12, mainText.Text.Length); + } + } catch { + } + } + } +} diff --git a/Histacom2/GlobalPrograms/WinClassicNotepad.resx b/Histacom2/GlobalPrograms/WinClassicNotepad.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Histacom2/GlobalPrograms/WinClassicNotepad.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file -- 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/GlobalPrograms') 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