Beispiel #1
0
 public virtual void InitLanguage(string lang, bool isSetCulture = true)
 {
     //LanguageUltility.ChangeLanguage("Ivs.Core.Properties.COM_MSG_{0}", Assembly.GetAssembly(typeof(LanguageUltility)), this, UserSession.LangId);
     LanguageUltility.ChangeLanguage(baseName, Assembly.GetAssembly(typeof(LanguageUltility)), this, LstControls, lang ?? UserSession.LangId, isSetCulture);
     this.Text = LanguageUltility.GetString(this.Name, "Message");
     //this.Invalidate();
 }
Beispiel #2
0
        public void ReDisplay()
        {
            if (dgcMain.DataSource != null)
            {
                //Set Base Name
                string baseName = "Ivs.Core.Properties.COM_MSG_{0}";
                //Set List Control For Main
                ResourceManager resources = new ResourceManager(this.GetType());
                // change main form resources
                this.Text = resources.GetString("$this.Text");
                //Change Language For Main Form
                LanguageUltility.ChangeLanguage(baseName, Assembly.GetAssembly(typeof(LanguageUltility)), this, LstControls, (UserSession.LangId));

                this.ChangeMessage();
                _type = CommonData.MessageType.Ok;
                if (!this.Modal)
                {
                    this.ShowDialog();
                }
            }
        }