///---------------------------------------------------------------------------- /// /// Copyright (c) 2008 AOL LLC /// /// All rights reserved. /// /// Redistribution and use in source and binary forms, with or without modification, are permitted /// provided that the following conditions are met: /// /// Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. /// /// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and /// the following disclaimer in the documentation and/or other materials provided with the distribution. /// /// Neither the name of the AOL LLC nor the names of its contributors may be used to endorse or /// promote products derived from this software without specific prior written permission. /// /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS /// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT /// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR /// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR /// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, /// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, /// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR /// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF /// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING /// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS /// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /// ///---------------------------------------------------------------------------- using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace awshbuddy { /// /// Summary description for AboutDlg. /// public class AboutDlg : System.Windows.Forms.Form { private System.Windows.Forms.Label label1; private System.Windows.Forms.Label version; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private PictureBox pictureBox1; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public AboutDlg() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if(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(AboutDlg)); this.label1 = new System.Windows.Forms.Label(); this.version = 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.pictureBox1 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(29, 120); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(272, 15); this.label1.TabIndex = 2; this.label1.Text = "AIM C-Sharp is a product"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // version // this.version.AutoSize = true; this.version.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.version.Location = new System.Drawing.Point(114, 155); this.version.Name = "version"; this.version.Size = new System.Drawing.Size(99, 15); this.version.TabIndex = 3; this.version.Text = "Version ?.?.??"; // // label2 // this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(29, 135); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(272, 16); this.label2.TabIndex = 2; this.label2.Text = "created for testing purposes. "; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label3 // this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(56, 188); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(219, 16); this.label3.TabIndex = 2; this.label3.Text = "The home for Open AIM is:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label4 // this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(33, 203); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(264, 16); this.label4.TabIndex = 2; this.label4.Text = "http://open.aim.com"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(52, 11); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(232, 88); this.pictureBox1.TabIndex = 1; this.pictureBox1.TabStop = false; this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // // AboutDlg // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(330, 240); this.Controls.Add(this.version); this.Controls.Add(this.label1); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.label2); this.Controls.Add(this.label3); this.Controls.Add(this.label4); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "AboutDlg"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "About AIM C-Sharp"; this.Load += new System.EventHandler(this.AboutDlg_Load); this.Click += new System.EventHandler(this.AboutDlg_Click); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private void IDOK_Click(object sender, System.EventArgs e) { Dispose(true); } private void AboutDlg_Load(object sender, System.EventArgs e) { version.Text = "Version - 0.0.0.1";//BuddyList.bl.Version + MultipartyChat.Version; } private void AboutDlg_Click(object sender, EventArgs e) { Dispose(true); } private void pictureBox1_Click(object sender, System.EventArgs e) { Dispose(true); } } }