예제 #1
0
        private void btnLanguageSelect_Click(object sender, System.EventArgs e)
        {
            bool res = tclm.ShowLanguageSelectionDialog(this);

            if (res == true && LocalMenu != null)
            {
                LocalMenu.SetFKeyText();
            }
        }
예제 #2
0
 /// <summary>
 /// Lets users select a language.
 /// </summary>
 public void LanguageDialog()
 {
     if (tclm != null)
     {
         bool res = tclm.ShowLanguageSelectionDialog(this);
         if (res == true && LocalMenu != null)
         {
             LocalMenu.SetFKeyText();
         }
     }
 }
예제 #3
0
        private void FKey1UpEvent(int nIdx)
        {
            if (String.Compare(tcFKeyLanguage.FKeyText(nIdx), aktuelleSprachversion, true) != 0)
            {
                tclm.Sprache = tclm.Translate(tcFKeyLanguage.FKeyText(nIdx), tclm.Sprache, "DEUTSCH");
                tclm.SaveAllChanges();

                // set the right language for the text of the function keys
                if (LocalMenu != null)
                {
                    LocalMenu.SetFKeyText();
                }
            }
            else
            {
                this.DialogResult = DialogResult.Cancel;
            }
        }