private void SetLanguagesListEnabled(bool enabled)
        {
            MethodInvoker mi = new MethodInvoker(() =>
            {
                LanguagesComboBox.Enabled = enabled;
            });

            if (LanguagesComboBox.InvokeRequired)
            {
                LanguagesComboBox.Invoke(mi);
            }
            else
            {
                mi.Invoke();
            }
        }
        private void SetLanguagesComboBox(List <string> languages)

        {
            MethodInvoker mi = new MethodInvoker(() =>
            {
                LanguagesComboBox.Items.AddRange(languages.ToArray());
                LanguagesComboBox.SelectedIndex = 0;
            });

            if (LanguagesComboBox.InvokeRequired)
            {
                LanguagesComboBox.Invoke(mi);
            }
            else
            {
                mi.Invoke();
            }
        }