Пример #1
0
        private void lanToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string lang = (sender as ToolStripMenuItem).Text;

            if (lang == "中文")
            {
                SetLanguage.SetLang("zh", this, typeof(MainView));
            }
            else
            {
                SetLanguage.SetLang("en", this, typeof(MainView));
            }
        }
Пример #2
0
 private string GetConstantsString(string key)
 {
     return(SetLanguage.GetStringByFormKey(typeof(MainView), key));
 }
Пример #3
0
 private string GetRingName(enumProductType type)
 {
     return(SetLanguage.GetStringByFormKey(typeof(MidRing), type.ToString()));
 }