// ctrlLog.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;
using ZANZI.ctrl;

namespace ZANZIClient
{
    /// <summary>
    /// Summary description for ctrlLog.
    /// </summary>
    public class ctrlLog : UserControl, Ictrl
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private Container components;

        //zzoi localized the hardcoded tabheader string
        //private string tabHeader;
        private ComponentResourceManager resources;
        // = new System.ComponentModel.ComponentResourceManager(typeof(ctrlDiscovery));

        public TextBox txtLog;


        public ctrlLog()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitializeComponent call
        }

        #region Ictrl Members

        public override string Text
        {
            //zzoi localized the hardcoded tabheader string
            get { return resources.GetString("tabHeader.Text"); }
            //get{ return  "System";}
            //set{ m_CharValue = value;}
        }

        public  bool StaticControl
        {

            get { return true; }

        }

        /// <summary>
        /// Function for restCulture event raised when language is changed
        /// </summary>
        public void ResetCulture()
        {
            try
            {
                //zzoi 6 June 2008 impliment string replacements for text
                //zzoi 6 June 2008 impliment string replacements for text
                //zzoi 6 June 2008 added mnuitems for reset to other language
                Text = resources.GetString("tabHeader.Text");
            }
            catch (Exception ex)
            {
                 new clsExeption(ex);
                //ErrByte = 1;
            }
        }

        #endregion

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

        #region Component 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()
        {
            //ZZoi changed the variable to class scope
            //System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ctrlDiscovery));
            resources = new System.ComponentModel.ComponentResourceManager(typeof (ctrlLog));
            this.txtLog = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            // 
            // txtLog
            // 
            resources.ApplyResources(this.txtLog, "txtLog");
            this.txtLog.Name = "txtLog";
            // 
            // ctrlLog
            // 
            resources.ApplyResources(this, "$this");
            this.Controls.Add(this.txtLog);
            this.Name = "ctrlLog";
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        #endregion
    }
}