private void ApplyNewSettings(bool replacePanelToHome = true)
        {
            GlobalSettings.ChangeSettings(

                (comboBox1.SelectedItem != null) ? comboBox1.Text.ToString() : Languages.curlang,

                GlobalSettings.ThemeStringToColor(comboBox2.SelectedItem),

                (comboBox2.SelectedItem != null) ? (
                    (comboBox2.SelectedItem.ToString() == "Light")  ? Color.FromName("ControlText")     :
                    (comboBox2.SelectedItem.ToString() == "Dark")   ? Color.FromName("HighlightText")   :
                    (comboBox2.SelectedItem.ToString() == "Green")  ? Color.FromName("ControlText")     :
                    (comboBox2.SelectedItem.ToString() == "Cyan")   ? Color.FromName("HighlightText")   :
                    (comboBox2.SelectedItem.ToString() == "Pink")   ? Color.FromName("ControlText")     :
                    (comboBox2.SelectedItem.ToString() == "Orange") ? Color.FromName("HighlightText")   :
                    (comboBox2.SelectedItem.ToString() == "Maroon") ? Color.FromName("HighlightText")   :
                    Color.FromName("ControlText")) : GlobalSettings.fontcol,

                checkBox1.Checked, checkBox2.Checked, checkBox3.Checked
                );

            if (startForm == null)
            {
                DialogResult settingsWarningResult = MessageBox.Show(
                    Languages.GetLocalizedString(
                        "SettingsWarningLine1", "To completely change the theme and language"
                        ) + "\n" +
                    Languages.GetLocalizedString("SettingsWarningLine2", "click in this message OK, then") + "\n" +
                    Languages.GetLocalizedString(
                        "SeetingsWarningLine3", "the application will be restarted automatically"
                        ),
                    Languages.GetLocalizedString("ChangingSettingsHeading", "Changing Settings"),
                    MessageBoxButtons.OKCancel, MessageBoxIcon.Warning
                    );
                if (settingsWarningResult == DialogResult.OK)
                {
                    Application.Restart();
                }
            }
            else
            {
                GlobalSettings.InitThemeAndLang(startForm.Controls, startForm);
            }

            if (replacePanelToHome)
            {
                MainForm.GoBackPage(this);
            }
        }