예제 #1
0
        private void Language_Load(object sender, EventArgs e)
        {
            if (Global.IS_WOLFCOM)
            {
                this.HeaderPanel.BackgroundImage = Properties.Resources.topbar45;
                this.btnCloseDlg.VIBlendTheme    = VIBLEND_THEME.NERO;
            }
            this.SetLanguage();
            this.cboLang.Items.Clear();
            List <CultureInfo> appLanguages = LangCtrl.GetAppLanguages();

            if (appLanguages.Count > 0)
            {
                foreach (CultureInfo appLanguage in appLanguages)
                {
                    ListItem listItem = new ListItem()
                    {
                        Text = appLanguage.DisplayName,
                        Tag  = appLanguage.Name
                    };
                    this.cboLang.Items.Add(listItem);
                }
                string[] strArrays = Global.DefaultLanguage.Split(new char[] { '|' });
                FormCtrl.SetComboItem(this.cboLang, strArrays[1]);
                this.btn_SetLanguage.Enabled = true;
            }
        }