From 35180dbae4ecbfc9e046d6e2bf65ba64bb1eafe0 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sun, 31 Jul 2011 02:13:24 +0000 Subject: [PATCH] A real about box --- BizHawk.MultiClient/BizBox.Designer.cs | 170 ++++++++++++++++++ BizHawk.MultiClient/BizBox.cs | 30 ++++ BizHawk.MultiClient/BizBox.resx | 146 +++++++++++++++ .../BizHawk.MultiClient.csproj | 10 ++ BizHawk.MultiClient/MainForm.MenuItems.cs | 3 +- .../Properties/Resources.Designer.cs | 7 + BizHawk.MultiClient/Properties/Resources.resx | 3 + 7 files changed, 368 insertions(+), 1 deletion(-) create mode 100644 BizHawk.MultiClient/BizBox.Designer.cs create mode 100644 BizHawk.MultiClient/BizBox.cs create mode 100644 BizHawk.MultiClient/BizBox.resx diff --git a/BizHawk.MultiClient/BizBox.Designer.cs b/BizHawk.MultiClient/BizBox.Designer.cs new file mode 100644 index 0000000000..d61f0a9702 --- /dev/null +++ b/BizHawk.MultiClient/BizBox.Designer.cs @@ -0,0 +1,170 @@ +namespace BizHawk.MultiClient +{ + partial class BizBox + { + /// + /// 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(BizBox)); + this.OK = new System.Windows.Forms.Button(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // OK + // + this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.OK.Location = new System.Drawing.Point(390, 157); + this.OK.Name = "OK"; + this.OK.Size = new System.Drawing.Size(75, 23); + this.OK.TabIndex = 0; + this.OK.Text = "&Ok"; + this.OK.UseVisualStyleBackColor = true; + this.OK.Click += new System.EventHandler(this.OK_Click); + // + // pictureBox1 + // + this.pictureBox1.Image = global::BizHawk.MultiClient.Properties.Resources.corphawk; + this.pictureBox1.Location = new System.Drawing.Point(12, 12); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(164, 164); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 1; + this.pictureBox1.TabStop = false; + // + // linkLabel1 + // + this.linkLabel1.AutoSize = true; + this.linkLabel1.Location = new System.Drawing.Point(198, 130); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.Size = new System.Drawing.Size(180, 13); + this.linkLabel1.TabIndex = 2; + this.linkLabel1.TabStop = true; + this.linkLabel1.Text = "http://code.google.com/p/bizhawk/"; + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(198, 89); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(46, 13); + this.label1.TabIndex = 3; + this.label1.Text = "Authors:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(198, 108); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(129, 13); + this.label2.TabIndex = 4; + this.label2.Text = "Vecna, Zeromus, Adelikat"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.Location = new System.Drawing.Point(197, 12); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(78, 20); + this.label3.TabIndex = 5; + this.label3.Text = "BizHawk"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(201, 36); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(156, 16); + this.label4.TabIndex = 6; + this.label4.Text = "A multi-Platform Emulator"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(201, 56); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(60, 13); + this.label5.TabIndex = 7; + this.label5.Text = "Version 1.0"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(267, 56); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(118, 13); + this.label6.TabIndex = 8; + this.label6.Text = "Released July 28, 2011"; + // + // BizBox + // + this.AcceptButton = this.OK; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(477, 192); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.linkLabel1); + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.OK); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximumSize = new System.Drawing.Size(900, 438); + this.MinimumSize = new System.Drawing.Size(485, 219); + this.Name = "BizBox"; + this.Text = " BizHawk"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button OK; + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.LinkLabel linkLabel1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + } +} \ No newline at end of file diff --git a/BizHawk.MultiClient/BizBox.cs b/BizHawk.MultiClient/BizBox.cs new file mode 100644 index 0000000000..a2dc684589 --- /dev/null +++ b/BizHawk.MultiClient/BizBox.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace BizHawk.MultiClient +{ + public partial class BizBox : Form + { + public BizBox() + { + InitializeComponent(); + } + + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + this.linkLabel1.LinkVisited = true; + System.Diagnostics.Process.Start("http://code.google.com/p/bizhawk/"); + } + + private void OK_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/BizHawk.MultiClient/BizBox.resx b/BizHawk.MultiClient/BizBox.resx new file mode 100644 index 0000000000..a2ce610dee --- /dev/null +++ b/BizHawk.MultiClient/BizBox.resx @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAEBEAAAEAIACsBAAAFgAAACgAAAAQAAAAIgAAAAEAIAAAAAAAAAAAAGEPAABhDwAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAANT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/6evw/8PExf/ZxHv/5c90293bxDkAAAAAAAAAAOjg + vUPCv3XZFJ7N/wCTyP8LbZP/EDM//0JJTv/Gx8X/5+fn/+zq8P+2rpr/1cVo89/aq2kAAAAAAAAAAAAA + AAAAAAAA1duzWEOltf8Hkbz/Fkdc/zNDRv9KWFr/kpKW//z7/P/f4dv/qqWCvt3YsV0AAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAADi3tYNj4+Wp8rKzP/x8vD/6PLw/+fo6//b294ImJuRntfZyygAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAN3azx3Gysv/qK+x/8C5uP/Dw8P/wcfJOQAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAPwfAADwDwAA4AcAAMADAACAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAIAD + AADABwAA4A8AAPBfAAD4fwAA + + + \ No newline at end of file diff --git a/BizHawk.MultiClient/BizHawk.MultiClient.csproj b/BizHawk.MultiClient/BizHawk.MultiClient.csproj index a8884ae6be..73cdcd12e2 100644 --- a/BizHawk.MultiClient/BizHawk.MultiClient.csproj +++ b/BizHawk.MultiClient/BizHawk.MultiClient.csproj @@ -98,6 +98,12 @@ ArchiveChooser.cs + + Form + + + BizBox.cs + @@ -425,6 +431,9 @@ ArchiveChooser.cs Designer + + BizBox.cs + InputConfig.cs Designer @@ -635,6 +644,7 @@ + diff --git a/BizHawk.MultiClient/MainForm.MenuItems.cs b/BizHawk.MultiClient/MainForm.MenuItems.cs index 9e17175dbb..b7c0310db2 100644 --- a/BizHawk.MultiClient/MainForm.MenuItems.cs +++ b/BizHawk.MultiClient/MainForm.MenuItems.cs @@ -311,7 +311,8 @@ namespace BizHawk.MultiClient private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { - new AboutBox().ShowDialog(); + //new AboutBox().ShowDialog(); + new BizBox().ShowDialog(); } private void controllersToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/BizHawk.MultiClient/Properties/Resources.Designer.cs b/BizHawk.MultiClient/Properties/Resources.Designer.cs index 07fad1a02d..12ce04532f 100644 --- a/BizHawk.MultiClient/Properties/Resources.Designer.cs +++ b/BizHawk.MultiClient/Properties/Resources.Designer.cs @@ -151,6 +151,13 @@ namespace BizHawk.MultiClient.Properties { } } + internal static System.Drawing.Bitmap corphawk { + get { + object obj = ResourceManager.GetObject("corphawk", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + internal static System.Drawing.Bitmap CutHS { get { object obj = ResourceManager.GetObject("CutHS", resourceCulture); diff --git a/BizHawk.MultiClient/Properties/Resources.resx b/BizHawk.MultiClient/Properties/Resources.resx index 6858d8cc4e..b3156e4544 100644 --- a/BizHawk.MultiClient/Properties/Resources.resx +++ b/BizHawk.MultiClient/Properties/Resources.resx @@ -777,4 +777,7 @@ ..\images\Scan.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\images\corphawk.jpg;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file