//private IniFiles settingFile; public Form_Protocol(WallSetForm f) { InitializeComponent(); this.f = f; //settingFile = new IniFiles(Application.StartupPath + "\\setting.ini"); languageFile = new IniFiles(Application.StartupPath + "\\LanguagePack" + f.mainForm.package); Init_FormString(); if (f.mainForm.Chinese_English == 1) { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US"); ApplyResource(); } else if (f.mainForm.Chinese_English == 0) { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHS"); ApplyResource(); } else { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHT"); ApplyResource(); } }
public Form_MatrixMap(WallSetForm f, int row, int col) { InitializeComponent(); this.Row = row; this.Col = col; this.f = f; languageFile = new IniFiles(Application.StartupPath + "\\LanguagePack" + f.mainForm.package); Init_FormString(); }