private void button4_Click(object sender, EventArgs e)
{
Program.keepRunnig = true;
this.Close();
Thread.Sleep(1000);
StreamWriter stw = new StreamWriter(@"E:\NabilDataBase\ChangeFormLang\ChangeFormLang\1.txt");
switch (Thread.CurrentThread.CurrentUICulture.IetfLanguageTag)
{
case "en-US": Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ar-IQ");
// stw.Write("ar-IQ");
stw.Close();
break;
case "ar-AR": Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
// stw.Write("en-US");
stw.Close();
break;
}
this.Controls.Clear();
InitializeComponent();
}
我做了一個程序的多語言界面線程類,並增加了兩個語言,我的問題是,當我更改接口以我添加另一種語言,並關閉對話框,然後我重新打開它,我看到界面恢復爲默認語言,如何在關閉時保存界面[1]
複製粘貼實際的代碼,而不是圖像。 –
第一個問題由社區審查否? – pix