using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

using INT63DC_6CH.Forms;

namespace INT63DC_6CH.Controls
{
    public partial class ControlMainDisplayAlarm : UserControl
    {
        #region Field
        private FormMainDisplay m_ParentForm; 
        #endregion

        #region Constructor
        public ControlMainDisplayAlarm(FormMainDisplay parent)
        {
            InitializeComponent();

            this.ParentForm = parent;

            this.InitializeDesign();
        } 
        #endregion

        #region Property
        public FormMainDisplay ParentForm
        {
            get { return this.m_ParentForm; }
            private set { this.m_ParentForm = value; }
        }
        #endregion

        #region Method

        private void InitializeDesign()
        {
            if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.E_LanguageID.Korean)
            {
            }
            else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.E_LanguageID.English)
            {
            }
            else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.E_LanguageID.Chinese)
            {
            }
            else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.E_LanguageID.Czech)
            {
            }
            else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.E_LanguageID.German)
            {
                this.labelTitle.Text = "  Alarm";
                this.buttonClose.Text = "Schließen";
            }
            else
            {

            }
        }

        public void DisplayRefresh()
        {
        }
        #endregion

        #region Event Handler
        private void buttonClose_Click(object sender, EventArgs e)
        {
            this.Visible = false;
        }
        #endregion
    }
}
