// frmAbout.cs
// Copyright (C) 2008 Karel Jordaan karel_jordaan@yahoo.com.au
// 
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

using System;
using System.ComponentModel;
using System.Windows.Forms;
using GUIControlLogic.Error;

namespace ZANZIClient
{
    /// <summary>
    /// Summary description for frmAbout.
    /// </summary>
    public class frmAbout : Form
    {
        #region Variable declaration

        protected Button btnOK;

        /// <summary>
        /// Required designer variable.
        /// </summary>
        private Container components;

        protected Label lblAppname;
        protected Label lblVersion;
        protected Label lblWarning;
        protected PictureBox picAppIco;

        #endregion

        #region Functions

        /// <summary>Main entry for frmAbout</summary>
        /// <returns>Returns nothing</returns>
        /// <param name="frm">Used to pass the MDIParent as reference</param>
        /// <remarks>frmAbout is the constructor in the frmAbout class.  
        /// The <paramref name="frm"/> parameter takes a reference to frmMain.
        /// </remarks>
        public frmAbout(frmMain frm)
        {
            try
            {
                //
                // Required for Windows Form Designer support
                //
                InitializeComponent();

                //	this.MdiParent = frm;
                Show();
            }
            catch (Exception  ex)
            {
                 new clsExeption(ex);
                //	ErrByte = 1;
            }
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #endregion

        #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(frmAbout));
            this.lblAppname = new System.Windows.Forms.Label();
            this.lblVersion = new System.Windows.Forms.Label();
            this.btnOK = new System.Windows.Forms.Button();
            this.lblWarning = new System.Windows.Forms.Label();
            this.picAppIco = new System.Windows.Forms.PictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.picAppIco)).BeginInit();
            this.SuspendLayout();
            // 
            // lblAppname
            // 
            this.lblAppname.AccessibleDescription = null;
            this.lblAppname.AccessibleName = null;
            resources.ApplyResources(this.lblAppname, "lblAppname");
            this.lblAppname.Font = null;
            this.lblAppname.Name = "lblAppname";
            // 
            // lblVersion
            // 
            this.lblVersion.AccessibleDescription = null;
            this.lblVersion.AccessibleName = null;
            resources.ApplyResources(this.lblVersion, "lblVersion");
            this.lblVersion.Font = null;
            this.lblVersion.Name = "lblVersion";
            this.lblVersion.Click += new System.EventHandler(this.lblVersion_Click);
            // 
            // btnOK
            // 
            this.btnOK.AccessibleDescription = null;
            this.btnOK.AccessibleName = null;
            resources.ApplyResources(this.btnOK, "btnOK");
            this.btnOK.BackgroundImage = null;
            this.btnOK.Font = null;
            this.btnOK.Name = "btnOK";
            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
            // 
            // lblWarning
            // 
            this.lblWarning.AccessibleDescription = null;
            this.lblWarning.AccessibleName = null;
            resources.ApplyResources(this.lblWarning, "lblWarning");
            this.lblWarning.Font = null;
            this.lblWarning.Name = "lblWarning";
            this.lblWarning.Click += new System.EventHandler(this.lblWarning_Click);
            // 
            // picAppIco
            // 
            this.picAppIco.AccessibleDescription = null;
            this.picAppIco.AccessibleName = null;
            resources.ApplyResources(this.picAppIco, "picAppIco");
            this.picAppIco.BackgroundImage = null;
            this.picAppIco.Font = null;
            this.picAppIco.ImageLocation = null;
            this.picAppIco.Name = "picAppIco";
            this.picAppIco.TabStop = false;
            // 
            // frmAbout
            // 
            this.AcceptButton = this.btnOK;
            this.AccessibleDescription = null;
            this.AccessibleName = null;
            resources.ApplyResources(this, "$this");
            this.BackgroundImage = null;
            this.Controls.Add(this.picAppIco);
            this.Controls.Add(this.lblWarning);
            this.Controls.Add(this.btnOK);
            this.Controls.Add(this.lblVersion);
            this.Controls.Add(this.lblAppname);
            this.Font = null;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon = null;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "frmAbout";
            this.ShowInTaskbar = false;
            this.TopMost = true;
            ((System.ComponentModel.ISupportInitialize)(this.picAppIco)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        #region Events

        private void btnOK_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        #endregion

        private void lblVersion_Click(object sender, EventArgs e)
        {

        }

        private void lblWarning_Click(object sender, EventArgs e)
        {

        }
    }
}