aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-31 14:17:32 -0600
committerAShifter <[email protected]>2017-03-31 14:17:32 -0600
commit82557462d1bb0a7fb776692cd0887b00919999d8 (patch)
treed885bb0fb9b2d518058e6e0025dbf29fed0db4bb /TimeHACK.Engine
parente2213726e627553783571fa631dd032f773f8794 (diff)
downloadhistacom2-82557462d1bb0a7fb776692cd0887b00919999d8.tar.gz
histacom2-82557462d1bb0a7fb776692cd0887b00919999d8.tar.bz2
histacom2-82557462d1bb0a7fb776692cd0887b00919999d8.zip
Added Infobox
Added an Infobox into the TimeHACK.Engine and removed extra WindowManager creations in Win95.cs also probably did some other honeyfries
Diffstat (limited to 'TimeHACK.Engine')
-rw-r--r--TimeHACK.Engine/Properties/Resources.Designer.cs30
-rw-r--r--TimeHACK.Engine/Properties/Resources.resx9
-rw-r--r--TimeHACK.Engine/Resources/WinClassic/Window/LeviWindows.ttfbin0 -> 46724 bytes
-rw-r--r--TimeHACK.Engine/Resources/WinClassic/Window/WinClassicWarning.pngbin0 -> 562 bytes
-rw-r--r--TimeHACK.Engine/Template/Infobox95.Designer.cs283
-rw-r--r--TimeHACK.Engine/Template/Infobox95.cs55
-rw-r--r--TimeHACK.Engine/Template/Infobox95.resx185
-rw-r--r--TimeHACK.Engine/Template/WinClassic.Designer.cs14
-rw-r--r--TimeHACK.Engine/Template/WinClassic.cs6
-rw-r--r--TimeHACK.Engine/Template/WinClassic.resx38
-rw-r--r--TimeHACK.Engine/TimeHACK.Engine.csproj14
-rw-r--r--TimeHACK.Engine/WindowManager.cs20
-rw-r--r--TimeHACK.Engine/bin/Release/TimeHACK.Engine.dllbin21504 -> 126464 bytes
-rw-r--r--TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdbbin24064 -> 30208 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/CoreCompileInputs.cache2
-rw-r--r--TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cachebin8216 -> 8410 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dllbin4608 -> 5120 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Engine.Properties.Resources.resourcesbin5220 -> 99340 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Engine.Template.WinClassic.resourcesbin2609 -> 0 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.FileListAbsolute.txt3
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cachebin1838 -> 2173 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Engine.dllbin21504 -> 126464 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdbbin24064 -> 30208 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.Infobox95.resourcesbin0 -> 3780 bytes
-rw-r--r--TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.WinClassic.resourcesbin0 -> 4593 bytes
25 files changed, 641 insertions, 18 deletions
diff --git a/TimeHACK.Engine/Properties/Resources.Designer.cs b/TimeHACK.Engine/Properties/Resources.Designer.cs
index a5a90ba..334f428 100644
--- a/TimeHACK.Engine/Properties/Resources.Designer.cs
+++ b/TimeHACK.Engine/Properties/Resources.Designer.cs
@@ -101,6 +101,26 @@ namespace TimeHACK.Engine.Properties {
}
/// <summary>
+ /// Looks up a localized resource of type System.Byte[].
+ /// </summary>
+ internal static byte[] LeviWindows {
+ get {
+ object obj = ResourceManager.GetObject("LeviWindows", resourceCulture);
+ return ((byte[])(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Byte[].
+ /// </summary>
+ internal static byte[] LeviWindows1 {
+ get {
+ object obj = ResourceManager.GetObject("LeviWindows1", resourceCulture);
+ return ((byte[])(obj));
+ }
+ }
+
+ /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap nullIcon {
@@ -189,5 +209,15 @@ namespace TimeHACK.Engine.Properties {
return ((System.Drawing.Bitmap)(obj));
}
}
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap WinClassicWarning {
+ get {
+ object obj = ResourceManager.GetObject("WinClassicWarning", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
}
}
diff --git a/TimeHACK.Engine/Properties/Resources.resx b/TimeHACK.Engine/Properties/Resources.resx
index ff58fbd..2763fc4 100644
--- a/TimeHACK.Engine/Properties/Resources.resx
+++ b/TimeHACK.Engine/Properties/Resources.resx
@@ -130,6 +130,12 @@
<data name="LeftSide" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\winclassic\window\leftside.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="LeviWindows" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\resources\winclassic\window\leviwindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name="LeviWindows1" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\resources\winclassic\window\leviwindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
<data name="nullIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\winclassic\window\nullicon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
@@ -157,4 +163,7 @@
<data name="WinClassicRestore" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\winclassic\window\winclassicrestore.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="WinClassicWarning" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\resources\winclassic\window\winclassicwarning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
</root> \ No newline at end of file
diff --git a/TimeHACK.Engine/Resources/WinClassic/Window/LeviWindows.ttf b/TimeHACK.Engine/Resources/WinClassic/Window/LeviWindows.ttf
new file mode 100644
index 0000000..134beb9
--- /dev/null
+++ b/TimeHACK.Engine/Resources/WinClassic/Window/LeviWindows.ttf
Binary files differ
diff --git a/TimeHACK.Engine/Resources/WinClassic/Window/WinClassicWarning.png b/TimeHACK.Engine/Resources/WinClassic/Window/WinClassicWarning.png
new file mode 100644
index 0000000..7e2e59c
--- /dev/null
+++ b/TimeHACK.Engine/Resources/WinClassic/Window/WinClassicWarning.png
Binary files differ
diff --git a/TimeHACK.Engine/Template/Infobox95.Designer.cs b/TimeHACK.Engine/Template/Infobox95.Designer.cs
new file mode 100644
index 0000000..8dfe488
--- /dev/null
+++ b/TimeHACK.Engine/Template/Infobox95.Designer.cs
@@ -0,0 +1,283 @@
+namespace TimeHACK.Main.Template
+{
+ partial class Infobox95
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Infobox95));
+ this.program = new System.Windows.Forms.Panel();
+ this.programContent = new System.Windows.Forms.Panel();
+ this.ok = new System.Windows.Forms.Button();
+ this.programtopbar = new System.Windows.Forms.Panel();
+ this.Title = new System.Windows.Forms.Label();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.infoText = new System.Windows.Forms.Label();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.closebutton = new System.Windows.Forms.PictureBox();
+ this.toprightcorner = new System.Windows.Forms.Panel();
+ this.bottomrightcorner = new System.Windows.Forms.Panel();
+ this.bottomleftcorner = new System.Windows.Forms.Panel();
+ this.topleftcorner = new System.Windows.Forms.Panel();
+ this.left = new System.Windows.Forms.Panel();
+ this.bottom = new System.Windows.Forms.Panel();
+ this.right = new System.Windows.Forms.Panel();
+ this.top = new System.Windows.Forms.Panel();
+ this.program.SuspendLayout();
+ this.programContent.SuspendLayout();
+ this.programtopbar.SuspendLayout();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.closebutton)).BeginInit();
+ this.SuspendLayout();
+ //
+ // program
+ //
+ this.program.BackColor = System.Drawing.Color.Silver;
+ this.program.Controls.Add(this.programContent);
+ this.program.Controls.Add(this.programtopbar);
+ this.program.Controls.Add(this.toprightcorner);
+ this.program.Controls.Add(this.bottomrightcorner);
+ this.program.Controls.Add(this.bottomleftcorner);
+ this.program.Controls.Add(this.topleftcorner);
+ this.program.Controls.Add(this.left);
+ this.program.Controls.Add(this.bottom);
+ this.program.Controls.Add(this.right);
+ this.program.Controls.Add(this.top);
+ this.program.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.program.Location = new System.Drawing.Point(0, 0);
+ this.program.Name = "program";
+ this.program.Size = new System.Drawing.Size(421, 164);
+ this.program.TabIndex = 9;
+ //
+ // programContent
+ //
+ this.programContent.Controls.Add(this.pictureBox1);
+ this.programContent.Controls.Add(this.panel1);
+ this.programContent.Controls.Add(this.ok);
+ this.programContent.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.programContent.Location = new System.Drawing.Point(4, 22);
+ this.programContent.Name = "programContent";
+ this.programContent.Size = new System.Drawing.Size(413, 138);
+ this.programContent.TabIndex = 9;
+ //
+ // ok
+ //
+ this.ok.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.ok.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.ok.Location = new System.Drawing.Point(169, 109);
+ this.ok.Name = "ok";
+ this.ok.Size = new System.Drawing.Size(75, 23);
+ this.ok.TabIndex = 1;
+ this.ok.Text = "OK";
+ this.ok.UseVisualStyleBackColor = true;
+ this.ok.Click += new System.EventHandler(this.ok_Click);
+ this.ok.Paint += new System.Windows.Forms.PaintEventHandler(this.closebutton_Paint);
+ //
+ // programtopbar
+ //
+ this.programtopbar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(170)))));
+ this.programtopbar.Controls.Add(this.Title);
+ this.programtopbar.Controls.Add(this.closebutton);
+ this.programtopbar.Dock = System.Windows.Forms.DockStyle.Top;
+ this.programtopbar.Location = new System.Drawing.Point(4, 4);
+ this.programtopbar.Name = "programtopbar";
+ this.programtopbar.Size = new System.Drawing.Size(413, 18);
+ this.programtopbar.TabIndex = 0;
+ this.programtopbar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Programtopbar_drag);
+ //
+ // Title
+ //
+ this.Title.AutoSize = true;
+ this.Title.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Title.ForeColor = System.Drawing.Color.White;
+ this.Title.Location = new System.Drawing.Point(3, 3);
+ this.Title.Name = "Title";
+ this.Title.Size = new System.Drawing.Size(78, 13);
+ this.Title.TabIndex = 3;
+ this.Title.Text = "Infobox Title";
+ this.Title.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Programtopbar_drag);
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.infoText);
+ this.panel1.Location = new System.Drawing.Point(57, 33);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(337, 62);
+ this.panel1.TabIndex = 2;
+ //
+ // infoText
+ //
+ this.infoText.AutoSize = true;
+ this.infoText.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.infoText.Location = new System.Drawing.Point(0, 0);
+ this.infoText.Name = "infoText";
+ this.infoText.Size = new System.Drawing.Size(35, 13);
+ this.infoText.TabIndex = 0;
+ this.infoText.Text = "label1";
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.ErrorImage = null;
+ this.pictureBox1.Image = global::TimeHACK.Engine.Properties.Resources.WinClassicWarning;
+ this.pictureBox1.InitialImage = null;
+ this.pictureBox1.Location = new System.Drawing.Point(8, 33);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(32, 32);
+ this.pictureBox1.TabIndex = 3;
+ this.pictureBox1.TabStop = false;
+ //
+ // closebutton
+ //
+ this.closebutton.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.closebutton.Image = ((System.Drawing.Image)(resources.GetObject("closebutton.Image")));
+ this.closebutton.Location = new System.Drawing.Point(396, 2);
+ this.closebutton.Name = "closebutton";
+ this.closebutton.Size = new System.Drawing.Size(16, 14);
+ this.closebutton.TabIndex = 4;
+ this.closebutton.TabStop = false;
+ this.closebutton.Click += new System.EventHandler(this.closebutton_Click);
+ //
+ // toprightcorner
+ //
+ this.toprightcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.toprightcorner.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("toprightcorner.BackgroundImage")));
+ this.toprightcorner.Location = new System.Drawing.Point(417, 0);
+ this.toprightcorner.Name = "toprightcorner";
+ this.toprightcorner.Size = new System.Drawing.Size(4, 4);
+ this.toprightcorner.TabIndex = 6;
+ //
+ // bottomrightcorner
+ //
+ this.bottomrightcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.bottomrightcorner.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bottomrightcorner.BackgroundImage")));
+ this.bottomrightcorner.Cursor = System.Windows.Forms.Cursors.SizeNWSE;
+ this.bottomrightcorner.Location = new System.Drawing.Point(417, 160);
+ this.bottomrightcorner.Name = "bottomrightcorner";
+ this.bottomrightcorner.Size = new System.Drawing.Size(4, 4);
+ this.bottomrightcorner.TabIndex = 4;
+ //
+ // bottomleftcorner
+ //
+ this.bottomleftcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.bottomleftcorner.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bottomleftcorner.BackgroundImage")));
+ this.bottomleftcorner.Location = new System.Drawing.Point(0, 160);
+ this.bottomleftcorner.Name = "bottomleftcorner";
+ this.bottomleftcorner.Size = new System.Drawing.Size(4, 4);
+ this.bottomleftcorner.TabIndex = 2;
+ //
+ // topleftcorner
+ //
+ this.topleftcorner.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topleftcorner.BackgroundImage")));
+ this.topleftcorner.Location = new System.Drawing.Point(0, 0);
+ this.topleftcorner.Name = "topleftcorner";
+ this.topleftcorner.Size = new System.Drawing.Size(4, 4);
+ this.topleftcorner.TabIndex = 1;
+ //
+ // left
+ //
+ this.left.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("left.BackgroundImage")));
+ this.left.Dock = System.Windows.Forms.DockStyle.Left;
+ this.left.Location = new System.Drawing.Point(0, 4);
+ this.left.Name = "left";
+ this.left.Size = new System.Drawing.Size(4, 156);
+ this.left.TabIndex = 3;
+ //
+ // bottom
+ //
+ this.bottom.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bottom.BackgroundImage")));
+ this.bottom.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.bottom.Cursor = System.Windows.Forms.Cursors.SizeNS;
+ this.bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.bottom.Location = new System.Drawing.Point(0, 160);
+ this.bottom.Name = "bottom";
+ this.bottom.Size = new System.Drawing.Size(417, 4);
+ this.bottom.TabIndex = 5;
+ //
+ // right
+ //
+ this.right.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("right.BackgroundImage")));
+ this.right.Cursor = System.Windows.Forms.Cursors.SizeWE;
+ this.right.Dock = System.Windows.Forms.DockStyle.Right;
+ this.right.Location = new System.Drawing.Point(417, 4);
+ this.right.Name = "right";
+ this.right.Size = new System.Drawing.Size(4, 160);
+ this.right.TabIndex = 7;
+ //
+ // top
+ //
+ this.top.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("top.BackgroundImage")));
+ this.top.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.top.Dock = System.Windows.Forms.DockStyle.Top;
+ this.top.Location = new System.Drawing.Point(0, 0);
+ this.top.Name = "top";
+ this.top.Size = new System.Drawing.Size(421, 4);
+ this.top.TabIndex = 8;
+ //
+ // Infobox95
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(421, 164);
+ this.Controls.Add(this.program);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Name = "Infobox95";
+ this.Text = "Infobox";
+ this.program.ResumeLayout(false);
+ this.programContent.ResumeLayout(false);
+ this.programtopbar.ResumeLayout(false);
+ this.programtopbar.PerformLayout();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.closebutton)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ internal System.Windows.Forms.Panel program;
+ public System.Windows.Forms.Panel programContent;
+ internal System.Windows.Forms.Panel programtopbar;
+ internal System.Windows.Forms.Label Title;
+ internal System.Windows.Forms.PictureBox closebutton;
+ internal System.Windows.Forms.Panel toprightcorner;
+ internal System.Windows.Forms.Panel bottomrightcorner;
+ internal System.Windows.Forms.Panel bottomleftcorner;
+ internal System.Windows.Forms.Panel topleftcorner;
+ internal System.Windows.Forms.Panel left;
+ internal System.Windows.Forms.Panel bottom;
+ internal System.Windows.Forms.Panel right;
+ internal System.Windows.Forms.Panel top;
+ private System.Windows.Forms.Button ok;
+ private System.Windows.Forms.Panel panel1;
+ public System.Windows.Forms.Label infoText;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ }
+} \ No newline at end of file
diff --git a/TimeHACK.Engine/Template/Infobox95.cs b/TimeHACK.Engine/Template/Infobox95.cs
new file mode 100644
index 0000000..838bad0
--- /dev/null
+++ b/TimeHACK.Engine/Template/Infobox95.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Drawing;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+
+namespace TimeHACK.Main.Template
+{
+ public partial class Infobox95 : Form
+ {
+ public Infobox95()
+ {
+ InitializeComponent();
+ }
+
+ private void ok_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+
+ private void closebutton_Paint(object sender, PaintEventArgs e)
+ {
+ // Paint the StartMenu
+ ControlPaint.DrawBorder(e.Graphics, ok.ClientRectangle,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset);
+ }
+
+ public bool closeDisabled = false;
+
+ public const int WM_NCLBUTTONDOWN = 0xA1;
+ public const int HT_CAPTION = 0x2;
+
+ [DllImportAttribute("user32.dll")]
+ public static extern int SendMessage(IntPtr hWnd,
+ int Msg, int wParam, int lParam);
+ [DllImportAttribute("user32.dll")]
+ public static extern bool ReleaseCapture();
+
+ private void Programtopbar_drag(object sender, MouseEventArgs e)
+ {
+ if (e.Button == MouseButtons.Left)
+ {
+ ReleaseCapture();
+ SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0);
+ }
+ }
+
+ private void closebutton_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+ }
+}
diff --git a/TimeHACK.Engine/Template/Infobox95.resx b/TimeHACK.Engine/Template/Infobox95.resx
new file mode 100644
index 0000000..7635350
--- /dev/null
+++ b/TimeHACK.Engine/Template/Infobox95.resx
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="closebutton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAABcSURBVChTrY/R
+ DcAgCERvdEbrJh2lPU+SYkINRt+PSN6J4FkBhMddw8y+wFUgCbQ70OtO7OQTJLgRa/L7JWmOt8RsB8mD
+ TQ5NkFbeQcLwauzMdkjZCLAq0gJrAC8niIXaIK89FAAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="toprightcorner.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAdSURBVBhXYzh8
+ /DQEMQDBfzBo6+oDcSDCGBwGBgAJoRsoKGRD1QAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="bottomrightcorner.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAdSURBVBhXYzh8
+ /DQQtXX1MQABCgdIQRCIgwAMDABm/hFrLt/K7gAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="bottomleftcorner.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAdSURBVBhXYzh8
+ /PT///+BJBBhcNq6+iCIAQEYGACcHRsocGQwIQAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="topleftcorner.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAaSURBVBhXYzh8
+ /DQcgTj/YQDKQZEBcY6fBgAaSCiZEc9BxAAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="left.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAIAAAB2XpiaAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAUSURBVBhXYzh8
+ /PT///+B5OHjpwFB1wn9nx9JYgAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="bottom.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAIAAADAusJtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAVSURBVBhXYzh8
+ /DQYt3X1MTAwMAAAQaQGSbsObiQAAAAASUVORK5CYII=
+</value>
+ </data>
+ <data name="right.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAIAAAB2XpiaAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAUSURBVBhXYzh8
+ /DQQtXX1MTAwAAA0WgZJrWm8iAAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="top.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAIAAADAusJtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAVSURBVBhXYzh8
+ /DTD////wfTh46cBUSgJ/bC/izUAAAAASUVORK5CYII=
+</value>
+ </data>
+</root> \ No newline at end of file
diff --git a/TimeHACK.Engine/Template/WinClassic.Designer.cs b/TimeHACK.Engine/Template/WinClassic.Designer.cs
index 0d26710..44d2707 100644
--- a/TimeHACK.Engine/Template/WinClassic.Designer.cs
+++ b/TimeHACK.Engine/Template/WinClassic.Designer.cs
@@ -1,4 +1,4 @@
-namespace TimeHACK.Engine.Template
+namespace TimeHACK.Main.Template
{
partial class WinClassic
{
@@ -109,7 +109,7 @@
// maximizebutton
//
this.maximizebutton.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.maximizebutton.Image = global::TimeHACK.Engine.Properties.Resources.WinClassicMax;
+ this.maximizebutton.Image = ((System.Drawing.Image)(resources.GetObject("maximizebutton.Image")));
this.maximizebutton.Location = new System.Drawing.Point(257, 2);
this.maximizebutton.Name = "maximizebutton";
this.maximizebutton.Size = new System.Drawing.Size(16, 14);
@@ -120,7 +120,7 @@
// minimizebutton
//
this.minimizebutton.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.minimizebutton.Image = global::TimeHACK.Engine.Properties.Resources.WinClassicMin;
+ this.minimizebutton.Image = ((System.Drawing.Image)(resources.GetObject("minimizebutton.Image")));
this.minimizebutton.Location = new System.Drawing.Point(241, 2);
this.minimizebutton.Name = "minimizebutton";
this.minimizebutton.Size = new System.Drawing.Size(16, 14);
@@ -130,7 +130,7 @@
// Title
//
this.Title.AutoSize = true;
- this.Title.Font = fnt;
+ this.Title.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Title.ForeColor = System.Drawing.Color.White;
this.Title.Location = new System.Drawing.Point(23, 3);
this.Title.Name = "Title";
@@ -142,7 +142,7 @@
// closebutton
//
this.closebutton.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.closebutton.Image = global::TimeHACK.Engine.Properties.Resources.WinClassicClose;
+ this.closebutton.Image = ((System.Drawing.Image)(resources.GetObject("closebutton.Image")));
this.closebutton.Location = new System.Drawing.Point(275, 2);
this.closebutton.Name = "closebutton";
this.closebutton.Size = new System.Drawing.Size(16, 14);
@@ -197,7 +197,7 @@
//
// bottom
//
- this.bottom.BackgroundImage = global::TimeHACK.Engine.Properties.Resources.BottomSide;
+ this.bottom.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bottom.BackgroundImage")));
this.bottom.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.bottom.Cursor = System.Windows.Forms.Cursors.SizeNS;
this.bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
@@ -218,7 +218,7 @@
//
// top
//
- this.top.BackgroundImage = global::TimeHACK.Engine.Properties.Resources.TopSide;
+ this.top.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("top.BackgroundImage")));
this.top.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.top.Dock = System.Windows.Forms.DockStyle.Top;
this.top.Location = new System.Drawing.Point(0, 0);
diff --git a/TimeHACK.Engine/Template/WinClassic.cs b/TimeHACK.Engine/Template/WinClassic.cs
index de88c1a..db85a6a 100644
--- a/TimeHACK.Engine/Template/WinClassic.cs
+++ b/TimeHACK.Engine/Template/WinClassic.cs
@@ -2,7 +2,7 @@
using System.Runtime.InteropServices;
using System.Windows.Forms;
-namespace TimeHACK.Engine.Template
+namespace TimeHACK.Main.Template
{
public partial class WinClassic : Form
{
@@ -55,7 +55,7 @@ namespace TimeHACK.Engine.Template
this.Dock = DockStyle.Fill;
this.WindowState = FormWindowState.Maximized;
max = true;
- maximizebutton.Image = Properties.Resources.WinClassicRestore;
+ maximizebutton.Image = Engine.Properties.Resources.WinClassicRestore;
}
else
{
@@ -70,7 +70,7 @@ namespace TimeHACK.Engine.Template
this.Dock = DockStyle.None;
this.WindowState = FormWindowState.Normal;
max = false;
- maximizebutton.Image = Properties.Resources.WinClassicMax;
+ maximizebutton.Image = Engine.Properties.Resources.WinClassicMax;
}
}
diff --git a/TimeHACK.Engine/Template/WinClassic.resx b/TimeHACK.Engine/Template/WinClassic.resx
index cd30725..394031d 100644
--- a/TimeHACK.Engine/Template/WinClassic.resx
+++ b/TimeHACK.Engine/Template/WinClassic.resx
@@ -118,6 +118,30 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="maximizebutton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAA+SURBVChTY/hP
+ CmAAAiB1nzjQ0NCA0HDgwAEQBwcAygIBNTRAJNDAqAY0DbgAdg0EAUIDkEUkAGkgDTAwAACYPGiagsMD
+ PwAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="minimizebutton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAA5SURBVChTY/hP
+ CmAAAiB1nzjQ0NCA0HCACDCqASqGF2DRAOKjAog4BFBDA36A0ABkEQlAGkgDDAwAKPmlWmNluNoAAAAA
+ SUVORK5CYII=
+</value>
+ </data>
+ <data name="closebutton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAABcSURBVChTrY/R
+ DcAgCERvdEbrJh2lPU+SYkINRt+PSN6J4FkBhMddw8y+wFUgCbQ70OtO7OQTJLgRa/L7JWmOt8RsB8mD
+ TQ5NkFbeQcLwauzMdkjZCLAq0gJrAC8niIXaIK89FAAAAABJRU5ErkJggg==
+</value>
+ </data>
<data name="toprightcorner.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -153,6 +177,13 @@
/PT///+B5OHjpwFB1wn9nx9JYgAAAABJRU5ErkJggg==
</value>
</data>
+ <data name="bottom.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAIAAADAusJtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAVSURBVBhXYzh8
+ /DQYt3X1MTAwMAAAQaQGSbsObiQAAAAASUVORK5CYII=
+</value>
+ </data>
<data name="right.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAIAAAB2XpiaAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -160,4 +191,11 @@
/DQQtXX1MTAwAAA0WgZJrWm8iAAAAABJRU5ErkJggg==
</value>
</data>
+ <data name="top.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAIAAADAusJtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAVSURBVBhXYzh8
+ /DTD////wfTh46cBUSgJ/bC/izUAAAAASUVORK5CYII=
+</value>
+ </data>
</root> \ No newline at end of file
diff --git a/TimeHACK.Engine/TimeHACK.Engine.csproj b/TimeHACK.Engine/TimeHACK.Engine.csproj
index 840be1f..dfff0ed 100644
--- a/TimeHACK.Engine/TimeHACK.Engine.csproj
+++ b/TimeHACK.Engine/TimeHACK.Engine.csproj
@@ -42,6 +42,12 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="Template\Infobox95.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Template\Infobox95.Designer.cs">
+ <DependentUpon>Infobox95.cs</DependentUpon>
+ </Compile>
<Compile Include="Template\WinClassic.cs">
<SubType>Form</SubType>
</Compile>
@@ -61,6 +67,9 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
+ <EmbeddedResource Include="Template\Infobox95.resx">
+ <DependentUpon>Infobox95.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="Template\WinClassic.resx">
<DependentUpon>WinClassic.cs</DependentUpon>
</EmbeddedResource>
@@ -80,7 +89,10 @@
<Content Include="Resources\WinClassic\Window\WinClassicMax.png" />
<Content Include="Resources\WinClassic\Window\WinClassicMin.png" />
<Content Include="Resources\WinClassic\Window\WinClassicRestore.png" />
+ <Content Include="Resources\WinClassic\Window\WinClassicWarning.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\WinClassic\Window\LeviWindows.ttf" />
</ItemGroup>
- <ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> \ No newline at end of file
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 193985a..2c8322f 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -1,15 +1,15 @@
using System;
-using TimeHACK.Engine.Template;
+using TimeHACK.Main.Template;
using System.Windows.Forms;
using System.Drawing;
-namespace TimeHACK.Engine
+namespace TimeHACK.Main
{
public class WindowManager
{
public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection();
- public WinClassic startWinClassic(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton)
+ public WinClassic startWin95(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton)
{
// Setup Window
WinClassic app = new WinClassic();
@@ -30,7 +30,7 @@ namespace TimeHACK.Engine
if (icon == null)
{
icon = app.programIcon;
- icon.Image = Properties.Resources.nullIcon;
+ icon.Image = Engine.Properties.Resources.nullIcon;
}
app.programIcon.Image = icon.Image;
@@ -55,5 +55,15 @@ namespace TimeHACK.Engine
return app;
}
+
+ public Infobox95 startInfobox95(String title, String text)
+ {
+ Infobox95 app = new Infobox95();
+ app.Title.Text = title;
+ app.Text = title;
+ app.infoText.Text = text;
+ app.Show();
+ return app;
+ }
}
-} \ No newline at end of file
+}
diff --git a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll
index 1f723ec..8e972b1 100644
--- a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll
+++ b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll
Binary files differ
diff --git a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb
index 3f23fba..1389960 100644
--- a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb
+++ b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/CoreCompileInputs.cache b/TimeHACK.Engine/obj/Release/CoreCompileInputs.cache
index 92e7a42..20462da 100644
--- a/TimeHACK.Engine/obj/Release/CoreCompileInputs.cache
+++ b/TimeHACK.Engine/obj/Release/CoreCompileInputs.cache
@@ -1 +1 @@
-6df66cf222f539a000e42b43e1a270bbc9342c86
+476b7a55df50518a8e0b6090961e3fa4581c5b5f
diff --git a/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
index 0cba21a..5eb069d 100644
--- a/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
+++ b/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
index 2ef289a..1ae0b51 100644
--- a/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
+++ b/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.Properties.Resources.resources b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.Properties.Resources.resources
index b31c83c..5b2609b 100644
--- a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.Properties.Resources.resources
+++ b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.Properties.Resources.resources
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.Template.WinClassic.resources b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.Template.WinClassic.resources
deleted file mode 100644
index f52d56e..0000000
--- a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.Template.WinClassic.resources
+++ /dev/null
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.FileListAbsolute.txt b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.FileListAbsolute.txt
index 4e353bd..fb39c27 100644
--- a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.FileListAbsolute.txt
+++ b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.FileListAbsolute.txt
@@ -32,7 +32,8 @@ D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\bin\Release\TimeHACK.Engine.dll
D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\bin\Release\TimeHACK.Engine.pdb
D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Engine.csprojResolveAssemblyReference.cache
D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Engine.Properties.Resources.resources
-D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Engine.Template.WinClassic.resources
D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Engine.csproj.GenerateResource.Cache
D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Engine.dll
D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Engine.pdb
+D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Main.Template.WinClassic.resources
+D:\Documents\GitHub\TimeHACK\TimeHACK.Engine\obj\Release\TimeHACK.Main.Template.Infobox95.resources
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache
index ae8d488..29b5acf 100644
--- a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache
+++ b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll
index 1f723ec..8e972b1 100644
--- a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll
+++ b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb
index 3f23fba..1389960 100644
--- a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb
+++ b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.Infobox95.resources b/TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.Infobox95.resources
new file mode 100644
index 0000000..28199df
--- /dev/null
+++ b/TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.Infobox95.resources
Binary files differ
diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.WinClassic.resources b/TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.WinClassic.resources
new file mode 100644
index 0000000..690267a
--- /dev/null
+++ b/TimeHACK.Engine/obj/Release/TimeHACK.Main.Template.WinClassic.resources
Binary files differ