| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Windows.Forms;
 
- namespace Optimizer
 
- {
 
-     public partial class InfoForm : Form
 
-     {
 
-         public InfoForm(string info)
 
-         {
 
-             InitializeComponent();
 
-             CheckForIllegalCrossThreadCalls = false;
 
-             Options.ApplyTheme(this);
 
-             txtInfo.Text = info;
 
-             // translate UI elements
 
-             if (Options.CurrentOptions.LanguageCode != LanguageCode.EN) Translate();
 
-         }
 
-         private void Translate()
 
-         {
 
-             Dictionary<string, string> translationList = Options.TranslationList.ToObject<Dictionary<string, string>>();
 
-             Control element;
 
-             foreach (var x in translationList)
 
-             {
 
-                 if (x.Key == null || x.Key == string.Empty) continue;
 
-                 element = this.Controls.Find(x.Key, true).FirstOrDefault();
 
-                 if (element == null) continue;
 
-                 element.Text = x.Value;
 
-             }
 
-         }
 
-         private void btnOK_Click(object sender, EventArgs e)
 
-         {
 
-             this.Close();
 
-         }
 
-         private void Info_Load(object sender, EventArgs e)
 
-         {
 
-         }
 
-         private void copyIPB_Click(object sender, EventArgs e)
 
-         {
 
-             try
 
-             {
 
-                 Clipboard.SetText(txtInfo.Text);
 
-             }
 
-             catch { }
 
-         }
 
-     }
 
- }
 
 
  |