示例#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()));
 }