From 3306d36ecbc024775972e5cf7971b2a7a70671d0 Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 23 Aug 2017 13:38:40 -0400 Subject: Renaming the game! --- TimeHACK.Engine/Template/AboutBox95.Designer.cs | 144 ------------ TimeHACK.Engine/Template/AboutBox95.cs | 19 -- TimeHACK.Engine/Template/AboutBox95.resx | 120 ---------- TimeHACK.Engine/Template/Infobox95.Designer.cs | 152 ------------ TimeHACK.Engine/Template/Infobox95.cs | 87 ------- TimeHACK.Engine/Template/Infobox95.resx | 120 ---------- TimeHACK.Engine/Template/Win9XBSOD.Designer.cs | 141 ------------ TimeHACK.Engine/Template/Win9XBSOD.cs | 38 --- TimeHACK.Engine/Template/Win9XBSOD.resx | 120 ---------- TimeHACK.Engine/Template/WinClassic.Designer.cs | 292 ------------------------ TimeHACK.Engine/Template/WinClassic.cs | 235 ------------------- TimeHACK.Engine/Template/WinClassic.resx | 201 ---------------- 12 files changed, 1669 deletions(-) delete mode 100644 TimeHACK.Engine/Template/AboutBox95.Designer.cs delete mode 100644 TimeHACK.Engine/Template/AboutBox95.cs delete mode 100644 TimeHACK.Engine/Template/AboutBox95.resx delete mode 100644 TimeHACK.Engine/Template/Infobox95.Designer.cs delete mode 100644 TimeHACK.Engine/Template/Infobox95.cs delete mode 100644 TimeHACK.Engine/Template/Infobox95.resx delete mode 100644 TimeHACK.Engine/Template/Win9XBSOD.Designer.cs delete mode 100644 TimeHACK.Engine/Template/Win9XBSOD.cs delete mode 100644 TimeHACK.Engine/Template/Win9XBSOD.resx delete mode 100644 TimeHACK.Engine/Template/WinClassic.Designer.cs delete mode 100644 TimeHACK.Engine/Template/WinClassic.cs delete mode 100644 TimeHACK.Engine/Template/WinClassic.resx (limited to 'TimeHACK.Engine/Template') diff --git a/TimeHACK.Engine/Template/AboutBox95.Designer.cs b/TimeHACK.Engine/Template/AboutBox95.Designer.cs deleted file mode 100644 index 0606d2c..0000000 --- a/TimeHACK.Engine/Template/AboutBox95.Designer.cs +++ /dev/null @@ -1,144 +0,0 @@ -namespace TimeHACK.Engine.Template -{ - partial class AboutBox95 - { - /// - /// 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(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.button1 = new System.Windows.Forms.Button(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.pictureBox2 = new System.Windows.Forms.PictureBox(); - this.textBox3 = new System.Windows.Forms.Label(); - this.textBox4 = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); - this.SuspendLayout(); - // - // pictureBox1 - // - this.pictureBox1.Location = new System.Drawing.Point(7, 7); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(64, 64); - this.pictureBox1.TabIndex = 5; - this.pictureBox1.TabStop = false; - // - // textBox1 - // - this.textBox1.BackColor = System.Drawing.Color.Silver; - this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox1.Location = new System.Drawing.Point(78, 16); - this.textBox1.Multiline = true; - this.textBox1.Name = "textBox1"; - this.textBox1.ReadOnly = true; - this.textBox1.Size = new System.Drawing.Size(193, 42); - this.textBox1.TabIndex = 4; - this.textBox1.Text = "@SOFTWARENAME\r\nWindows 95\r\nCopyright © 1981-1995 Microsoft Corp."; - // - // button1 - // - this.button1.FlatAppearance.BorderColor = System.Drawing.Color.Silver; - this.button1.Location = new System.Drawing.Point(251, 223); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 0; - this.button1.Text = "OK"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // textBox2 - // - this.textBox2.BackColor = System.Drawing.Color.Silver; - this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox2.Location = new System.Drawing.Point(78, 106); - this.textBox2.Multiline = true; - this.textBox2.Name = "textBox2"; - this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(185, 42); - this.textBox2.TabIndex = 3; - this.textBox2.Text = "This product is licensed to:\r\n@ACTUALUSER\r\n@COMPANYNAME"; - // - // pictureBox2 - // - this.pictureBox2.Image = global::TimeHACK.Engine.Properties.Resources.WinAboutSeparator95; - this.pictureBox2.Location = new System.Drawing.Point(76, 154); - this.pictureBox2.Name = "pictureBox2"; - this.pictureBox2.Size = new System.Drawing.Size(250, 2); - this.pictureBox2.TabIndex = 2; - this.pictureBox2.TabStop = false; - // - // textBox3 - // - this.textBox3.BackColor = System.Drawing.Color.Silver; - this.textBox3.Location = new System.Drawing.Point(76, 162); - this.textBox3.Name = "textBox3"; - this.textBox3.Size = new System.Drawing.Size(250, 16); - this.textBox3.TabIndex = 1; - this.textBox3.Text = "Physical Memory Available to Windows: 64,992 KB"; - // - // textBox4 - // - this.textBox4.BackColor = System.Drawing.Color.Silver; - this.textBox4.Location = new System.Drawing.Point(76, 184); - this.textBox4.Name = "textBox4"; - this.textBox4.Size = new System.Drawing.Size(250, 16); - this.textBox4.TabIndex = 0; - this.textBox4.Text = "System Resources: 97% Free"; - // - // AboutBox95 - // - 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.textBox4); - this.Controls.Add(this.textBox3); - this.Controls.Add(this.pictureBox2); - this.Controls.Add(this.textBox2); - this.Controls.Add(this.button1); - this.Controls.Add(this.textBox1); - this.Controls.Add(this.pictureBox1); - this.Name = "AboutBox95"; - this.Size = new System.Drawing.Size(335, 255); - this.Tag = "gnoreFormOnTaskbar"; - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - internal System.Windows.Forms.PictureBox pictureBox1; - internal System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Button button1; - internal System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.PictureBox pictureBox2; - private System.Windows.Forms.Label textBox3; - private System.Windows.Forms.Label textBox4; - } -} diff --git a/TimeHACK.Engine/Template/AboutBox95.cs b/TimeHACK.Engine/Template/AboutBox95.cs deleted file mode 100644 index 33c40e4..0000000 --- a/TimeHACK.Engine/Template/AboutBox95.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Windows.Forms; - -namespace TimeHACK.Engine.Template -{ - public partial class AboutBox95 : UserControl - { - public AboutBox95() - { - InitializeComponent(); - this.textBox2.Text = "This product is licensed to:\r\n" + Environment.UserName + "\r\n"; - } - - private void button1_Click(object sender, EventArgs e) - { - this.ParentForm.Close(); - } - } -} diff --git a/TimeHACK.Engine/Template/AboutBox95.resx b/TimeHACK.Engine/Template/AboutBox95.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TimeHACK.Engine/Template/AboutBox95.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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.Engine/Template/Infobox95.Designer.cs b/TimeHACK.Engine/Template/Infobox95.Designer.cs deleted file mode 100644 index f9d89c7..0000000 --- a/TimeHACK.Engine/Template/Infobox95.Designer.cs +++ /dev/null @@ -1,152 +0,0 @@ -namespace TimeHACK.Engine.Template -{ - partial class Infobox95 - { - /// - /// 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 Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.programContent = new System.Windows.Forms.Panel(); - this.button1 = new System.Windows.Forms.Button(); - this.button3 = new System.Windows.Forms.Button(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.panel1 = new System.Windows.Forms.Panel(); - this.infoText = new System.Windows.Forms.Label(); - this.button2 = new System.Windows.Forms.Button(); - this.programContent.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // programContent - // - this.programContent.BackColor = System.Drawing.Color.Silver; - this.programContent.Controls.Add(this.button1); - this.programContent.Controls.Add(this.button3); - this.programContent.Controls.Add(this.pictureBox1); - this.programContent.Controls.Add(this.panel1); - this.programContent.Controls.Add(this.button2); - this.programContent.Dock = System.Windows.Forms.DockStyle.Fill; - this.programContent.Location = new System.Drawing.Point(0, 0); - this.programContent.Name = "programContent"; - this.programContent.Size = new System.Drawing.Size(413, 118); - this.programContent.TabIndex = 10; - this.programContent.Tag = "gnoreFormOnTaskbar"; - // - // button1 - // - this.button1.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.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.button1.Location = new System.Drawing.Point(150, 84); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(80, 23); - this.button1.TabIndex = 5; - this.button1.Text = "Yes"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // button3 - // - this.button3.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.button3.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.button3.Location = new System.Drawing.Point(323, 84); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(80, 23); - this.button3.TabIndex = 4; - this.button3.Text = "Cancel"; - this.button3.UseVisualStyleBackColor = true; - this.button3.Click += new System.EventHandler(this.button3_Click); - // - // pictureBox1 - // - this.pictureBox1.ErrorImage = null; - this.pictureBox1.Image = global::TimeHACK.Engine.Properties.Resources.Win95Warning; - this.pictureBox1.InitialImage = null; - this.pictureBox1.Location = new System.Drawing.Point(15, 16); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(32, 32); - this.pictureBox1.TabIndex = 3; - this.pictureBox1.TabStop = false; - // - // panel1 - // - this.panel1.Controls.Add(this.infoText); - this.panel1.Location = new System.Drawing.Point(62, 16); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(341, 62); - this.panel1.TabIndex = 2; - // - // infoText - // - 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(341, 62); - this.infoText.TabIndex = 0; - this.infoText.Text = "label1"; - // - // button2 - // - this.button2.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.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.button2.Location = new System.Drawing.Point(236, 84); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(80, 23); - this.button2.TabIndex = 1; - this.button2.Text = "No"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // - // Infobox95 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.programContent); - this.Name = "Infobox95"; - this.Size = new System.Drawing.Size(413, 118); - this.programContent.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - public System.Windows.Forms.Panel programContent; - private System.Windows.Forms.PictureBox pictureBox1; - private System.Windows.Forms.Panel panel1; - public System.Windows.Forms.Label infoText; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Button button3; - private System.Windows.Forms.Button button1; - } -} \ No newline at end of file diff --git a/TimeHACK.Engine/Template/Infobox95.cs b/TimeHACK.Engine/Template/Infobox95.cs deleted file mode 100644 index 314d8d3..0000000 --- a/TimeHACK.Engine/Template/Infobox95.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using System.Drawing; -using System.Media; -using System.Runtime.InteropServices; -using System.Windows.Forms; - -namespace TimeHACK.Engine.Template -{ - public partial class Infobox95 : UserControl - { - int btnStatus = 0; - - public Infobox95(InfoboxType type, InfoboxButtons btns) - { - InitializeComponent(); - button1.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2); - button2.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2); - button3.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2); - - switch (type) - { - case InfoboxType.Info: - pictureBox1.Image = Properties.Resources.Win95Info; - SoundPlayer spa = new SoundPlayer(SaveSystem.currentTheme.asteriskSound); - spa.Play(); - break; - case InfoboxType.Question: - pictureBox1.Image = Properties.Resources.Win95Question; - SoundPlayer spq = new SoundPlayer(SaveSystem.currentTheme.questionSound); - spq.Play(); - break; - case InfoboxType.Warning: - pictureBox1.Image = Properties.Resources.Win95Warning; - SoundPlayer spw = new SoundPlayer(SaveSystem.currentTheme.exclamationSound); - spw.Play(); - break; - case InfoboxType.Error: - pictureBox1.Image = Properties.Resources.Win95Error; - SoundPlayer spe = new SoundPlayer(SaveSystem.currentTheme.critStopSound); - spe.Play(); - break; - } - - btnStatus = (int)btns; - switch (btns) - { - case InfoboxButtons.OK: - button1.Text = "OK"; - button2.Hide(); - button3.Hide(); - break; - } - } - - private void button2_Click(object sender, EventArgs e) - { - this.ParentForm.Close(); - } - - private void button3_Click(object sender, EventArgs e) - { - - } - - private void button1_Click(object sender, EventArgs e) - { - if (btnStatus == 0) this.ParentForm.Close(); - } - } - - public enum InfoboxType - { - Info, - Question, - Warning, - Error - } - - public enum InfoboxButtons - { - OK, - OKCancel, - YesNo, - YesNoCancel, - AbortRetryFail - } -} diff --git a/TimeHACK.Engine/Template/Infobox95.resx b/TimeHACK.Engine/Template/Infobox95.resx deleted file mode 100644 index 1af7de1..0000000 --- a/TimeHACK.Engine/Template/Infobox95.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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.Engine/Template/Win9XBSOD.Designer.cs b/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs deleted file mode 100644 index 67f596a..0000000 --- a/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs +++ /dev/null @@ -1,141 +0,0 @@ -namespace TimeHACK.Engine.Template -{ - partial class Win9XBSOD - { - /// - /// 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 Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.label1 = new System.Windows.Forms.Label(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.textBox3 = new System.Windows.Forms.TextBox(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // label1 - // - this.label1.Anchor = System.Windows.Forms.AnchorStyles.None; - this.label1.AutoSize = true; - this.label1.BackColor = System.Drawing.Color.Silver; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.ForeColor = System.Drawing.Color.Blue; - this.label1.Location = new System.Drawing.Point(549, 185); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(138, 31); - this.label1.TabIndex = 0; - this.label1.Text = " Windows "; - // - // textBox1 - // - this.textBox1.Anchor = System.Windows.Forms.AnchorStyles.None; - this.textBox1.BackColor = System.Drawing.Color.Blue; - this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox1.ForeColor = System.Drawing.Color.White; - this.textBox1.Location = new System.Drawing.Point(186, 272); - this.textBox1.Multiline = true; - this.textBox1.Name = "textBox1"; - this.textBox1.ReadOnly = true; - this.textBox1.Size = new System.Drawing.Size(947, 81); - this.textBox1.TabIndex = 0; - this.textBox1.TabStop = false; - this.textBox1.Text = "A fatal exception 0E has occured at 0028:C0034B23. The current application will " + - "be terminated."; - // - // textBox2 - // - this.textBox2.Anchor = System.Windows.Forms.AnchorStyles.None; - this.textBox2.BackColor = System.Drawing.Color.Blue; - this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox2.ForeColor = System.Drawing.Color.White; - this.textBox2.Location = new System.Drawing.Point(205, 377); - this.textBox2.Multiline = true; - this.textBox2.Name = "textBox2"; - this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(947, 101); - this.textBox2.TabIndex = 1; - this.textBox2.TabStop = false; - this.textBox2.Text = "* Press any key to rewind time to before the crash.\r\n* Press ESC to shutdown yo" + - "ur computer. You will lose any\r\n unsaved data in all applications."; - // - // textBox3 - // - this.textBox3.Anchor = System.Windows.Forms.AnchorStyles.None; - this.textBox3.BackColor = System.Drawing.Color.Blue; - this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox3.ForeColor = System.Drawing.Color.White; - this.textBox3.Location = new System.Drawing.Point(439, 506); - this.textBox3.Multiline = true; - this.textBox3.Name = "textBox3"; - this.textBox3.ReadOnly = true; - this.textBox3.Size = new System.Drawing.Size(382, 34); - this.textBox3.TabIndex = 2; - this.textBox3.TabStop = false; - this.textBox3.Text = "Press any key to rewind _"; - // - // panel1 - // - this.panel1.Controls.Add(this.label1); - this.panel1.Controls.Add(this.textBox3); - this.panel1.Controls.Add(this.textBox1); - this.panel1.Controls.Add(this.textBox2); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1280, 720); - this.panel1.TabIndex = 3; - // - // Win9XBSOD - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Blue; - this.ClientSize = new System.Drawing.Size(1280, 720); - this.Controls.Add(this.panel1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.Name = "Win9XBSOD"; - this.Tag = "ignoreFormOnTaskbar"; - this.Text = "Win9XBSOD"; - this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Win9XBSOD_FormClosed); - this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Win9XBSOD_KeyDown); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - internal System.Windows.Forms.Label label1; - internal System.Windows.Forms.TextBox textBox1; - internal System.Windows.Forms.TextBox textBox2; - internal System.Windows.Forms.TextBox textBox3; - private System.Windows.Forms.Panel panel1; - } -} \ No newline at end of file diff --git a/TimeHACK.Engine/Template/Win9XBSOD.cs b/TimeHACK.Engine/Template/Win9XBSOD.cs deleted file mode 100644 index acf5e07..0000000 --- a/TimeHACK.Engine/Template/Win9XBSOD.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TimeHACK.Engine.Template -{ - public partial class Win9XBSOD : Form - { - public bool reset = false; - - public Win9XBSOD() - { - InitializeComponent(); - this.panel1.Location = new Point(this.ClientSize.Width / 2 - 475, this.ClientSize.Height / 2 - 141); - } - - private void Win9XBSOD_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Escape) Environment.Exit(0); - else - { - reset = true; - this.Close(); - } - } - - private void Win9XBSOD_FormClosed(object sender, FormClosedEventArgs e) - { - - } - } -} diff --git a/TimeHACK.Engine/Template/Win9XBSOD.resx b/TimeHACK.Engine/Template/Win9XBSOD.resx deleted file mode 100644 index 29dcb1b..0000000 --- a/TimeHACK.Engine/Template/Win9XBSOD.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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.Engine/Template/WinClassic.Designer.cs b/TimeHACK.Engine/Template/WinClassic.Designer.cs deleted file mode 100644 index 2dd94e5..0000000 --- a/TimeHACK.Engine/Template/WinClassic.Designer.cs +++ /dev/null @@ -1,292 +0,0 @@ -namespace TimeHACK.Engine.Template -{ - partial class WinClassic - { - /// - /// 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 Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WinClassic)); - this.program = new System.Windows.Forms.Panel(); - this.programContent = new System.Windows.Forms.Panel(); - this.programtopbar = new System.Windows.Forms.Panel(); - this.programIcon = new System.Windows.Forms.PictureBox(); - this.maximizebutton = new System.Windows.Forms.PictureBox(); - this.minimizebutton = new System.Windows.Forms.PictureBox(); - this.Title = new System.Windows.Forms.Label(); - 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.programtopbar.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.programIcon)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.maximizebutton)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.minimizebutton)).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(300, 300); - this.program.TabIndex = 8; - // - // programContent - // - 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(292, 274); - this.programContent.TabIndex = 9; - // - // programtopbar - // - this.programtopbar.BackColor = System.Drawing.Color.Navy; - this.programtopbar.Controls.Add(this.programIcon); - this.programtopbar.Controls.Add(this.maximizebutton); - this.programtopbar.Controls.Add(this.minimizebutton); - 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(292, 18); - this.programtopbar.TabIndex = 0; - this.programtopbar.Tag = ""; - this.programtopbar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Programtopbar_drag); - // - // programIcon - // - this.programIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.programIcon.ErrorImage = null; - this.programIcon.InitialImage = null; - this.programIcon.Location = new System.Drawing.Point(2, 1); - this.programIcon.Name = "programIcon"; - this.programIcon.Size = new System.Drawing.Size(16, 16); - this.programIcon.TabIndex = 0; - this.programIcon.TabStop = false; - // - // maximizebutton - // - this.maximizebutton.Anchor = System.Windows.Forms.AnchorStyles.Right; - 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); - this.maximizebutton.TabIndex = 6; - this.maximizebutton.TabStop = false; - this.maximizebutton.Click += new System.EventHandler(this.maximizebutton_Click); - // - // minimizebutton - // - this.minimizebutton.Anchor = System.Windows.Forms.AnchorStyles.Right; - 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); - this.minimizebutton.TabIndex = 5; - this.minimizebutton.TabStop = false; - // - // 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(18, 1); - this.Title.Name = "Title"; - this.Title.Size = new System.Drawing.Size(99, 13); - this.Title.TabIndex = 3; - this.Title.Text = "Application Title"; - this.Title.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Programtopbar_drag); - // - // 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(275, 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.Cursor = System.Windows.Forms.Cursors.SizeNESW; - this.toprightcorner.Location = new System.Drawing.Point(296, 0); - this.toprightcorner.Name = "toprightcorner"; - this.toprightcorner.Size = new System.Drawing.Size(4, 4); - this.toprightcorner.TabIndex = 6; - this.toprightcorner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.toprightcorner.MouseMove += new System.Windows.Forms.MouseEventHandler(this.toprightcorner_MouseMove); - // - // 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(296, 296); - this.bottomrightcorner.Name = "bottomrightcorner"; - this.bottomrightcorner.Size = new System.Drawing.Size(4, 4); - this.bottomrightcorner.TabIndex = 4; - this.bottomrightcorner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.bottomrightcorner.MouseMove += new System.Windows.Forms.MouseEventHandler(this.bottomrightcorner_MouseMove); - // - // 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.Cursor = System.Windows.Forms.Cursors.SizeNESW; - this.bottomleftcorner.Location = new System.Drawing.Point(0, 296); - this.bottomleftcorner.Name = "bottomleftcorner"; - this.bottomleftcorner.Size = new System.Drawing.Size(4, 4); - this.bottomleftcorner.TabIndex = 2; - this.bottomleftcorner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.bottomleftcorner.MouseMove += new System.Windows.Forms.MouseEventHandler(this.bottomleftcorner_MouseMove); - // - // topleftcorner - // - this.topleftcorner.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topleftcorner.BackgroundImage"))); - this.topleftcorner.Cursor = System.Windows.Forms.Cursors.SizeNWSE; - 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; - this.topleftcorner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.topleftcorner.MouseMove += new System.Windows.Forms.MouseEventHandler(this.topleftcorner_MouseMove); - // - // left - // - this.left.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("left.BackgroundImage"))); - this.left.Cursor = System.Windows.Forms.Cursors.SizeWE; - 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, 292); - this.left.TabIndex = 3; - this.left.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.left.MouseMove += new System.Windows.Forms.MouseEventHandler(this.left_MouseMove); - // - // 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, 296); - this.bottom.Name = "bottom"; - this.bottom.Size = new System.Drawing.Size(296, 4); - this.bottom.TabIndex = 5; - this.bottom.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.bottom.MouseMove += new System.Windows.Forms.MouseEventHandler(this.bottom_MouseMove); - // - // 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(296, 4); - this.right.Name = "right"; - this.right.Size = new System.Drawing.Size(4, 296); - this.right.TabIndex = 7; - this.right.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.right.MouseMove += new System.Windows.Forms.MouseEventHandler(this.right_MouseMove); - // - // top - // - this.top.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("top.BackgroundImage"))); - this.top.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.top.Cursor = System.Windows.Forms.Cursors.SizeNS; - 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(300, 4); - this.top.TabIndex = 8; - this.top.MouseDown += new System.Windows.Forms.MouseEventHandler(this.border_MouseDown); - this.top.MouseMove += new System.Windows.Forms.MouseEventHandler(this.top_MouseMove); - // - // WinClassic - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(300, 300); - this.Controls.Add(this.program); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.Name = "WinClassic"; - this.Text = "WinClassic"; - this.Activated += new System.EventHandler(this.WinClassic_Activated); - this.Deactivate += new System.EventHandler(this.WinClassic_Deactivate); - this.program.ResumeLayout(false); - this.programtopbar.ResumeLayout(false); - this.programtopbar.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.programIcon)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.maximizebutton)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.minimizebutton)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.closebutton)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - public System.Windows.Forms.Panel program; - public System.Windows.Forms.Panel programtopbar; - public System.Windows.Forms.Label Title; - public System.Windows.Forms.PictureBox closebutton; - public System.Windows.Forms.Panel toprightcorner; - public System.Windows.Forms.Panel bottomrightcorner; - public System.Windows.Forms.Panel bottomleftcorner; - public System.Windows.Forms.Panel topleftcorner; - public System.Windows.Forms.Panel left; - public System.Windows.Forms.Panel bottom; - public System.Windows.Forms.Panel right; - public System.Windows.Forms.Panel top; - public System.Windows.Forms.Panel programContent; - public System.Windows.Forms.PictureBox maximizebutton; - public System.Windows.Forms.PictureBox minimizebutton; - public System.Windows.Forms.PictureBox programIcon; - } -} \ No newline at end of file diff --git a/TimeHACK.Engine/Template/WinClassic.cs b/TimeHACK.Engine/Template/WinClassic.cs deleted file mode 100644 index 75398dd..0000000 --- a/TimeHACK.Engine/Template/WinClassic.cs +++ /dev/null @@ -1,235 +0,0 @@ -using System; -using System.Drawing; -using System.Runtime.InteropServices; -using System.Windows.Forms; - -namespace TimeHACK.Engine.Template -{ - public partial class WinClassic : Form - { - public WinClassic() - { - InitializeComponent(); - DoubleBuffered = true; - } - - public Font fnt; - - public bool resizable = true; - public bool closeDisabled = false; - public bool isActive = true; - - public const int WM_NCLBUTTONDOWN = 0xA1; - public const int WM_SYSCOMMAND = 0x0112; - public const int HT_CAPTION = 0x2; - - private const int - HTLEFT = 10, - HTRIGHT = 11, - HTTOP = 12, - HTTOPLEFT = 13, - HTTOPRIGHT = 14, - HTBOTTOM = 15, - HTBOTTOMLEFT = 16, - HTBOTTOMRIGHT = 17; - - [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 && max == false) - { - ReleaseCapture(); - SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); - } - } - - private void closebutton_Click(object sender, EventArgs e) - { - if (!closeDisabled) this.Close(); - } - - private void WinClassic_Activated(object sender, EventArgs e) - { - isActive = true; - programtopbar.BackColor = SaveSystem.currentTheme.activeTitleBarColor; - Title.ForeColor = SaveSystem.currentTheme.activeTitleTextColor; - } - - private void WinClassic_Deactivate(object sender, EventArgs e) - { - isActive = false; - programtopbar.BackColor = SaveSystem.currentTheme.inactiveTitleBarColor; - Title.ForeColor = SaveSystem.currentTheme.inactiveTitleTextColor; - } - - - private void right_MouseMove(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Left) - { - if (resizable) this.Size = new Size(MousePosition.X - this.Location.X, this.Size.Height); - } - } - - private void left_MouseMove(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Left) - { - if (resizable) this.Width = ((this.Width + this.Location.X) - Cursor.Position.X); - if (resizable)this.Location = new Point(Cursor.Position.X, this.Location.Y); - } - } - - private void bottom_MouseMove(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Left) - { - if (resizable) this.Size = new Size(this.Size.Width, MousePosition.Y - this.Location.Y); - } - } - - private void bottomrightcorner_MouseMove(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Left) - { - if (resizable) this.Size = new Size(MousePosition.X - this.Location.X, MousePosition.Y - this.Location.Y); - } - } - - private void bottomleftcorner_MouseMove(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Left) - { - if (resizable) this.Width = ((this.Width + this.Location.X) - Cursor.Position.X); - if (resizable) this.Height = (Cursor.Position.Y - this.Location.Y); - if (resizable) this.Location = new Point(Cursor.Position.X, this.Location.Y); - } - } - - private void topleftcorner_MouseMove(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Left) - { - if (resizable) this.Width = ((this.Width + this.Location.X) - Cursor.Position.X); - if (resizable) this.Location = new Point(Cursor.Position.X, this.Location.Y); - if (resizable) this.Height = ((this.Height + this.Location.Y) - Cursor.Position.Y); - if (resizable) this.Location = new Point(this.Location.X, Cursor.Position.Y); - } - } - - private void top_MouseMove(object sender, MouseEventArgs e) - { - if(e.Button == MouseButtons.Left) - { - if(resizable) this.Height = ((this.Height + this.Location.Y) - Cursor.Position.Y); - if(resizable) this.Location = new Point(this.Location.X, Cursor.Position.Y); - } - } - - private void toprightcorner_MouseMove(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Left) - { - if (resizable) this.Width = (Cursor.Position.X - this.Location.X); - if (resizable) this.Height = ((this.Location.Y - Cursor.Position.Y) + this.Height); - if (resizable) this.Location = new Point(this.Location.X, Cursor.Position.Y); - } - } - - public bool max = false; - - private void maximizebutton_Click(object sender, EventArgs e) - { - if (max == false) - { - this.right.Hide(); - this.left.Hide(); - this.bottom.Hide(); - this.top.Hide(); - this.bottomleftcorner.Hide(); - this.bottomrightcorner.Hide(); - this.topleftcorner.Hide(); - this.toprightcorner.Hide(); - this.Dock = DockStyle.Fill; - this.WindowState = FormWindowState.Maximized; - max = true; - maximizebutton.Image = Engine.Properties.Resources.WinClassicRestore; - } - else - { - this.right.Show(); - this.left.Show(); - this.bottom.Show(); - this.top.Show(); - this.bottomleftcorner.Show(); - this.bottomrightcorner.Show(); - this.topleftcorner.Show(); - this.toprightcorner.Show(); - this.Dock = DockStyle.None; - this.WindowState = FormWindowState.Normal; - max = false; - maximizebutton.Image = Engine.Properties.Resources.WinClassicMax; - } - - } - - // The rest of this code will automatically style the buttons on the form! - - protected override void OnControlAdded(ControlEventArgs e) - { - base.OnControlAdded(e); - - if (e.Control.GetType() == typeof(Button)) - { - e.Control.MouseEnter += button_MouseEnter; - e.Control.MouseLeave += button_MouseLeave; - - ((Button)e.Control).FlatStyle = FlatStyle.Popup; - } - } - - protected override void OnControlRemoved(ControlEventArgs e) - { - base.OnControlRemoved(e); - - if (e.Control.GetType() == typeof(Button)) - { - e.Control.MouseEnter -= button_MouseEnter; - e.Control.MouseLeave -= button_MouseLeave; - } - } - - private void button_MouseEnter(object sender, EventArgs e) - { - var c = (Button)sender; - c.UseVisualStyleBackColor = false; - c.BackColor = Color.GhostWhite; - } - - private void button_MouseLeave(object sender, EventArgs e) - { - var c = (Button)sender; - c.UseVisualStyleBackColor = true; - } - - private void border_MouseDown(object sender, EventArgs e) - { - var cursor = this.PointToClient(Cursor.Position); - - if (topleftcorner.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF004, 0); - else if (toprightcorner.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF005, 0); - else if (bottomleftcorner.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF007, 0); - else if (bottomrightcorner.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF008, 0); - - else if (top.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF003, 0); - else if (left.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF001, 0); - else if (right.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF002, 0); - else if (bottom.ClientRectangle.Contains(cursor)) SendMessage(Handle, WM_SYSCOMMAND, 0xF006, 0); - } - } -} diff --git a/TimeHACK.Engine/Template/WinClassic.resx b/TimeHACK.Engine/Template/WinClassic.resx deleted file mode 100644 index 394031d..0000000 --- a/TimeHACK.Engine/Template/WinClassic.resx +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAA+SURBVChTY/hP - CmAAAiB1nzjQ0NCA0HDgwAEQBwcAygIBNTRAJNDAqAY0DbgAdg0EAUIDkEUkAGkgDTAwAACYPGiagsMD - PwAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAA5SURBVChTY/hP - CmAAAiB1nzjQ0NCA0HCACDCqASqGF2DRAOKjAog4BFBDA36A0ABkEQlAGkgDDAwAKPmlWmNluNoAAAAA - SUVORK5CYII= - - - - - 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 - - - \ No newline at end of file -- cgit v1.2.3