From a48b40e45536ee5c58d4d6a23bde0a9fc2b8ae3d Mon Sep 17 00:00:00 2001 From: lempamo Date: Thu, 13 Jul 2017 12:07:52 -0500 Subject: added invalid page catcher and resx's --- .../Win95/Win95Apps/IE4Sites/IE4NoPage.Designer.cs | 61 ++++++++++ .../OS/Win95/Win95Apps/IE4Sites/IE4NoPage.cs | 20 ++++ .../OS/Win95/Win95Apps/IE4Sites/IE4NoPage.resx | 123 +++++++++++++++++++++ .../OS/Win95/Win95Apps/IE4Sites/IE4Start.resx | 120 ++++++++++++++++++++ TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs | 3 + TimeHACK.Main/Properties/Resources.Designer.cs | 10 ++ TimeHACK.Main/Properties/Resources.resx | 5 +- TimeHACK.Main/Resources/IE4/nopage.bmp | Bin 0 -> 219642 bytes TimeHACK.Main/TimeHACK.Main.csproj | 11 ++ 9 files changed, 352 insertions(+), 1 deletion(-) create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.Designer.cs create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.cs create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.resx create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4Start.resx create mode 100644 TimeHACK.Main/Resources/IE4/nopage.bmp diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.Designer.cs new file mode 100644 index 0000000..dd931aa --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.Designer.cs @@ -0,0 +1,61 @@ +namespace TimeHACK.OS.Win95.Win95Apps.IE4Sites +{ + partial class IE4NoPage + { + /// + /// 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.pictureBox1 = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.Image = global::TimeHACK.Properties.Resources.nopage; + this.pictureBox1.Location = new System.Drawing.Point(0, 0); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(406, 538); + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // IE4NoPage + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.White; + this.Controls.Add(this.pictureBox1); + this.Name = "IE4NoPage"; + this.Size = new System.Drawing.Size(959, 541); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.cs b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.cs new file mode 100644 index 0000000..894aaf5 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.cs @@ -0,0 +1,20 @@ +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; + +namespace TimeHACK.OS.Win95.Win95Apps.IE4Sites +{ + public partial class IE4NoPage : UserControl + { + public IE4NoPage() + { + InitializeComponent(); + } + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.resx b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.resx new file mode 100644 index 0000000..a167a19 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4NoPage.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + testy + + \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4Start.resx b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4Start.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/IE4Sites/IE4Start.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 diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs index 637201d..568749f 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs @@ -38,6 +38,9 @@ namespace TimeHACK.OS.Win95.Win95Apps case "www.google.stanford.edu": uc = new GooglePrototype(); break; + default: + uc = new IE4NoPage(); + break; } addressbar.Text = url; diff --git a/TimeHACK.Main/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs index 803ec4e..c721c0a 100644 --- a/TimeHACK.Main/Properties/Resources.Designer.cs +++ b/TimeHACK.Main/Properties/Resources.Designer.cs @@ -264,6 +264,16 @@ namespace TimeHACK.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap nopage { + get { + object obj = ResourceManager.GetObject("nopage", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index bf5c1c6..1007fd9 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -522,7 +522,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wAAADsABataJCQAAAJVJREFUOE+VkQsSxCAMQj16bu4GFU3YdO2+Gaqi0F/7j96zfqKHqYiuByYBFfYJ + vwAADr8BOAVTJAAAAJVJREFUOE+VkQsSxCAMQj16bu4GFU3YdO2+Gaqi0F/7j96zfqKHqYiuByYBFfYJ 1okT9uuef4slmG9gWjdzN4Wnf9bRT1RhaCN+KriGieyvkjr8Rl7AMMbywE0zCBiIBS9Awbn7tUD29xME Q0rM8IHhPbziKRhMU0pqjVIfcgHAfB2oiugnuEnG/EkZ/4fLZEksutHaB6sGQO/gf7MbAAAAAElFTkSu QmCC @@ -603,4 +603,7 @@ ..\Resources\IE4\start_padamslink.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\IE4\nopage.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/TimeHACK.Main/Resources/IE4/nopage.bmp b/TimeHACK.Main/Resources/IE4/nopage.bmp new file mode 100644 index 0000000..ebd05c8 Binary files /dev/null and b/TimeHACK.Main/Resources/IE4/nopage.bmp differ diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index dca45e5..052cbe8 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -145,6 +145,12 @@ GooglePrototype.cs + + UserControl + + + IE4NoPage.cs + UserControl @@ -334,6 +340,10 @@ GooglePrototype.cs + + IE4NoPage.cs + Designer + IE4Start.cs @@ -462,6 +472,7 @@ + -- cgit v1.2.3