private void buttonExportLang_Click(object sender, EventArgs e) { try { status.Text = "Writing..."; String filename = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\nbn_polish_resource.txt"; var polish = new LearnByError.Internazional.Lang.Polish(); System.Text.StringBuilder sb = new System.Text.StringBuilder(); foreach (System.Collections.DictionaryEntry de in polish.Resource) { sb.AppendLine((String)de.Key + ";" + (String)de.Value); } Common.File.WriteToTextFile(filename, sb.ToString(), false); status.Text = "Done"; System.Diagnostics.Process.Start(filename); } catch { } }
private void buttonExportLang_Click(object sender, EventArgs e) { try { status.Text = "Writing..."; String filename = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\nbn_polish_resource.txt"; var polish = new LearnByError.Internazional.Lang.Polish(); System.Text.StringBuilder sb = new System.Text.StringBuilder(); foreach (System.Collections.DictionaryEntry de in polish.Resource) { sb.AppendLine((String)de.Key + ";" +(String)de.Value); } Common.File.WriteToTextFile(filename, sb.ToString(), false); status.Text = "Done"; System.Diagnostics.Process.Start(filename); } catch { } }